I’m trying to make a pointer to a material node.
color_node: bpy.props.PointerProperty(type=bpy.types.Node)
Does not register properly, how do I make a pointer to a node?
I’m trying to make a pointer to a material node.
color_node: bpy.props.PointerProperty(type=bpy.types.Node)
Does not register properly, how do I make a pointer to a node?
I believe this is what I was looking for.
"You cannot do this directly. With a PointerProperty you can only refer to a subclass of bpy.types.PropertyGroup or bpy.types.ID.
A Node is none of the above. Best way to solve this is to use a PointerProperty to point to the NodeTree (what is a subclass of bpy.types.ID) and use an additional bpy.props.StringProperty to select the specific node in that tree.
Note: Renaming the node will make the StringProperty Invalid."
tldr; store node names in strings