Skip to content

Commit

Permalink
appended count of objects in this node in the button text
Browse files Browse the repository at this point in the history
  • Loading branch information
satabol committed Oct 8, 2024
1 parent 5514a5a commit 46d4193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/scene/get_objects_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def sv_draw_buttons(self, context, layout):

if len(self.object_names)>0:
row = layout.row()
self.wrapper_tracked_ui_draw_op(row, 'node.ob3_callback_mk2', text="Select objects").fn_name = 'set_objects_selected_scene'
self.wrapper_tracked_ui_draw_op(row, 'node.ob3_callback_mk2', text=f"Select objects ({len(self.object_names)})").fn_name = 'set_objects_selected_scene'
self.wrapper_tracked_ui_draw_op(row, 'node.ob3_callback_mk2', text="Deselect objects").fn_name = 'deselect_objects_from_scene'

def sv_draw_buttons_ext(self, context, layout):
Expand Down

0 comments on commit 46d4193

Please sign in to comment.