Is possible register a custom property (boolean) to be assigned to the active material slot?

Normally for object property i use :

class Property_Settings(bpy.types.PropertyGroup):

 my_prop: BoolProperty(default = False)

and in register :

Object.my_prop_grp = bpy.props.PointerProperty(type=Property_Settings)

Existing way to change Object to material slot?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.