Skip to content

Commit f8b6cda

Browse files
Update custom_node.py
INT
1 parent e77e212 commit f8b6cda

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

custom_node.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ def INPUT_TYPES(cls):
3131
"""
3232
return {
3333
"required": {
34-
"left": ("INT"),
35-
"top": ("INT"),
36-
"right": ("INT"),
37-
"bottom": ("INT"),
34+
"left": ("INT", {"default": 0}),
35+
"top": ("INT", {"default": 0}),
36+
"right": ("INT", {"default": 100}),
37+
"bottom": ("INT", {"default": 100}),
3838
"crop_width": ("INT", {"default": 50}),
3939
"crop_height": ("INT", {"default": 50})
4040
},
@@ -84,4 +84,4 @@ def compute_crop_coordinates(self, left, top, right, bottom, crop_width, crop_he
8484
# Dictionary to map node names to their friendly display names
8585
NODE_DISPLAY_NAME_MAPPINGS = {
8686
"BBoxCrop": "Bounding Box Crop Node"
87-
}
87+
}

0 commit comments

Comments
 (0)