O, I have this Collection Property:
class particle_instancer(bpy.types.PropertyGroup): particle_object = StringProperty (name = "Object", description = "") particle_material = StringProperty (name = "Material", description = "") bpy.utils.register_class(particle_instancer) bpy.types.Scene.particle_instancer = CollectionProperty(type = particle_instancer)
And then I have an operator that is supposed to add a StringProperty() to its first item.
If Instead of a CollectionProperty I used the scene as the "Container" for the properties, I could simply do:
bpy.types.Scene.my_prop = StringProperty()
I thought I could do:
bpy.types.particle_instancer.my_prop = StringProperty()
But this leads to nothing as the property doesn't get register and it doesn't give me any error StackTrace neither. So is it possible to do? If yes how could I do?