I need to extend the TimelimeMarker class with some properties, but my try returns strange results and will not work.
I’ve created a marker and renamed it to ‘MyMarker’ in the timeline. Then I added a new property to the TimelineMarker class.
bpy.types.TimelineMarker.pause_on_reached = bpy.props.IntProperty()
if I test the type of the new property it returns tuple instead of <type int>
If I try to set the value of the new property I got an error:
>>> bpy.context.scene.timeline_markers[‘F_10’].pause_on_reached = 1
Traceback (most recent call last):
File “<blender_console>”, line 1, in <module>
AttributeError: ‘TimelineMarker’ object attribute ‘pause_on_reached’ is read-only
If I try the same on the Object Type or Scene Type for instance it works like intented and I can set values properly.
Don’t understand, where’s the difference.
Any pointers are welcome.