I was wondering if this is the most efficient way to hide an object using python?
bpy.context.view_layer.objects.active = bpy.data.objects['Cone']; bpy.context.object.hide_viewport = True;
Is there a more efficient way to do this (since I have to turn on/off visibility many times for many objects), maybe something like:
bpy.data.objects['Cube'].visible_set(False); # visible_set doesn't exist unfortunately
Thanks.
hide_render
property. Again, if you'd like to have efficient as possible, provide more context. Related: blender.stackexchange.com/a/133470/31447 $\endgroup$