From 70e647076418d114111aa76b5d3639a5b4271e94 Mon Sep 17 00:00:00 2001 From: Owl Date: Fri, 26 Sep 2025 14:32:34 -0400 Subject: bcsv and other stuff --- blender_funcs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'blender_funcs.py') diff --git a/blender_funcs.py b/blender_funcs.py index a4a15aa..09e7db0 100644 --- a/blender_funcs.py +++ b/blender_funcs.py @@ -34,7 +34,7 @@ def disp_msg(string): # select object and its children in the interaction mode specified def select_obj(obj, recursive, interact_mode): - # get the object scene + # get the scene scene = obj.users_scene[0] # make it the only object selected and active @@ -46,13 +46,17 @@ def select_obj(obj, recursive, interact_mode): # select the new object and set it to the selected mode 2 times lol scene.objects.active = obj obj.select = True + # unhide it if hidden + obj.hide = False bpy.ops.object.mode_set(mode = interact_mode) bpy.ops.object.mode_set(mode = interact_mode) # select the children objects as well, if on object mode + # unhide them as well if (recursive == True): for child in obj.children: child.select = True + obj.hide = False # duplicate a selected object with its children objects -- cgit v1.2.3-70-g09d2