I want to create a field where the user can select a modifier, usually I would use a pointer for this. I can easily create a pointer to collections or objects like this:
bpy.types.Scene.chvi_dummy_obj = bpy.props.PointerProperty(type = bpy.types.Object)
But if I try to do the same with modifier like this:
bpy.types.Scene.chvi_dummy_mod = bpy.props.PointerProperty(type = bpy.types.Modifier)
I get this error:
TypeError: PointerProperty(...) expected an RNA type derived from ID or ID Property Group
Is there a way to have a pointer to a modifier or it's just impossible?
bpy.types.Scene
object. You would need to go the types docs and find the type of object you want to set the property for. In this case it looks like it would bebpy.types.Modifier
. $\endgroup$bpy.types.Modifier
. $\endgroup$