When using an
FloatProperty, is there any way of changing their
max values dynamically?
I'm currently loading images on the fly and would like to limit a
frame property to run from
len(loaded_images) every time I call the loading operator. However, the property seems to be read-only and re-assigning gives the following error:
bpy.context.scene.project_props.bl_rna.properties['myIntProp'] = bpy.props.IntProperty(...) TypeError: bpy_prop_collection[key] = value: invalid, expected a StructRNA type or None, not a tuple
I understand the
bpy.props constructor uses an intermediary tuple, but I'm not sure how to proceed. Is there any way around this?