So I try this code, create an property:
bpy.types.Sequences.fakeinput1 = bpy.props.PointerProperty(name="Input 1", type=bpy.types.Sequences)
Then draw it in panel:
col.prop(strip, "fakeinput1")
And I get following error:
rna_uiItemR: property not found: ImageSequence.fakeinput1
So I guess, ImageSequence
does not inherits my property from Sequences
But when I try to set this property to ImageSequence
I get following error:
TypeError: PointerProperty(...) expected an RNA type derived from ID or ID Property Group
Traceback (most recent call last):
File "----", line 10, in <module>
File "----", line 11, in StripSettings
ValueError: bpy_struct "ImageSequence" registration error: fakeinput1 could not register
I tried to make pointer on PropertyGroup, this works for Sequences
, but for ImageSequence
I got this error:
`TypeError: PointerProperty(...) expected an RNA type, failed with: RuntimeError: , missing bl_rna attribute from 'RNAMetaPropGroup' instance (may not be registered`)
How can I fix that? Maybe I can mark property as inherited?
For now I get this results:
- Pointer for PropertyGroup or Sequences(ImageSequence) - works in Sequences (but not inherits), does not work in ImageSequence
- BoolProperty or any simple Property - works in Sequences (but not inherits), work in ImageSequence also
This is a testscript works fine for 3 prop and get error on prop4, why?
import bpy
class MyAddonProperties(bpy.types.PropertyGroup):
input1 : bpy.props.IntProperty()
class StripSettings(bpy.types.PropertyGroup):
bpy.types.Sequences.prop1 = bpy.props.BoolProperty(name='Active', default=True)
bpy.types.ImageSequence.prop2 = bpy.props.BoolProperty(name='Active', default=True)
bpy.types.Sequences.prop3 = bpy.props.PointerProperty(type=MyAddonProperties)
bpy.types.ImageSequence.prop4 = bpy.props.PointerProperty(type=MyAddonProperties)
bpy.utils.register_class(MyAddonProperties)
bpy.utils.register_class(StripSettings)