Is there any way have some more information of the prop from it's update function?
In the example below, unfortunately, self will point out to bpy.types.Scene, instead of the prop itself. so it seem at first glance that we cannot have any information of the props from the update function, and we are forced to have one update function per prop, instead of a single centralized update function that could work with every one the prop
(Note that We can have more information from set, but of course, it will create feedback loops if we change the prop value.. )
please prove me wrong
def update(self,context):
print("what is this prop value?")
print("what is this prop api?")
print("what is this prop name?")
return None
bpy.types.Scene._prop : bpy.props.FloatProperty(default=1.0 , name="Prop", update=update)
bpy.types.Scene._prop_this : bpy.props.FloatProperty(default=1.1 , name="Prop This", update=update)
bpy.types.Scene._prop_that : bpy.props.FloatProperty(default=1.2 , name="Prop That", update=update)
bpy.types.Scene._prop_another : bpy.props.FloatProperty(default=1.3 , name="Prop Another", update=update)
self._prop? What do you want to do exactly? – lemon Dec 14 '20 at 12:11