I try to create some properties for custom primitives in property group classes and I want to access them from an operator in another .py file
to create primitives, but I get the following error:
AttributeError: 'tuple' object has no attribute 'base'
I'm trying to follow this advice:
class MyProps(PropertyGroup):
... # properties and stuff
class ParentProps(PropertyGroup):
# THIS WILL NOT WORK! MyProps _has_ to be registered at this point
#foo = PointerProperty(type=MyProps)
def register():
# 1) register property class
bpy.utils.register_class(MyProps)
# 2) add property (now it works)
ParentProps.foo = PointerProperty(type=MyProps)
# 3) register parent class
bpy.utils.register_class(ParentProps)
Unfortunately I get another error:
ValueError: register_class(...): expected a class argument, not 'tuple'
The WIP code looks like this: http://www.pasteall.org/60602/python (line 1260).
The design idea is that operators should create primitives and set up their properties, but these properties should still be there to change it later.