I am writing an addon that deals with creating objects and assigning them properties based on panel parameters. I want the panel to update it's parameters to match the properties of my selected object only when I first select it. If I update for every draw, I will not be able to change those parameters because it will automatically snap back to the parameters of my selected object. How can I update the panel properties only once when I select a new object?
Asked
Active
Viewed 329 times
0
Tyler Beaird
- 63
- 3
bpy.types.Objectinstead ofbpy.types.Scene(if it's the case) that way you won't risk overriding your parameters – Gorgious Dec 20 '21 at 17:51