I am defining an extra property for all objects like this:
bpy.types.Object.alpha = bpy.props.FloatProperty(
default=100.0,
min=0.0,
max=100.0
)
However, when adding new objects, they start with their alpha at 0.0:
Making matters even more confusing, right-clicking the property and selecting 'reset to default' correctly sets the value to 100.0:
How can I ensure that new objects correctly start with this default value?


return self.get("alpha", DEFAULT)– batFINGER Jun 12 '21 at 05:09