I'm trying to register multiple classes at the same time like this: I got it working like this
def register():
bpy.utils.register_class(VIEW3D_PIE_SPECIALS)
bpy.utils.register_class(SMART_BOOLEAN_ADD)
bpy.utils.register_class(SMART_BOOLEAN_SUBTRACT)
bpy.utils.register_class(SMART_BOOLEAN_SLICE)
But I want it to automatically register all classes in my file
Here is my attempt which isn't working yet:
classes = ('VIEW3D_PIE_SPECIALS','SMART_BOOLEAN_ADD','SMART_BOOLEAN_SUBTRACT','SMART_BOOLEAN_SLICE')
def register():
for cls in classes:
return 'bpy.utils.register_class('+(cls)+')'
def unregister():
for cls in classes:
return 'bpy.utils.unregister_class('+(cls)+')'