Skip to main content
9 events
when toggle format what by license comment
Dec 25, 2021 at 22:47 vote accept SJK
May 2, 2021 at 18:47 comment added SJK Can anyone tell me why the SelectionOperator in the answer below does not run when the code is an addon? From what I can tell, neither the invoke nor the execute methods are executed when I click in the 3d view. Probably there is simple solution, but so far I I have not found it.
May 1, 2021 at 22:52 answer added SJK timeline score: 0
Apr 30, 2021 at 8:52 comment added batFINGER This will also depend on the mesh of the object. eg there is no way to give the plane a z dimension.
Apr 30, 2021 at 4:14 comment added Dale Cieslak if you want it to auto-update on selection, that's harder. Here's an answer that describes how to overload the built in selection function: blender.stackexchange.com/questions/31351/…
Apr 30, 2021 at 2:11 comment added SJK Cool! That works. Thanks for the explanation. I would like to be able to put the parameters of the selected object in the properties listed in the panel. I possibly could use an enum property to select the object and use an update function, but selecting the object in the 3d view seems preferable.
Apr 30, 2021 at 2:07 answer added Dale Cieslak timeline score: 2
Apr 29, 2021 at 21:33 comment added Dale Cieslak I can try to look more later, but there is definitely a difference between "active" and "selected"...you want to get the selected objects, which is bpy.context.selected_objects. There are times when you don't want the active item to be selected...for instance if you want to subtract a vertex group from another, you set the 1st active, then select it, then set the 2nd active, and deselect it. If active was the same as selected, that would be impossible. Or if you wanted to select a collection and then deselect one object in the collection.
Apr 29, 2021 at 19:06 history asked SJK CC BY-SA 4.0