forked from bartvdbraak/blender
correct example
This commit is contained in:
parent
12d62831b8
commit
93d562b7b6
@ -33,8 +33,8 @@ class MyPropertyGroup(bpy.types.PropertyGroup):
|
||||
|
||||
bpy.utils.register_class(MyPropertyGroup)
|
||||
|
||||
bpy.types.Object.my_properties = MyPropertyGroup
|
||||
bpy.types.Object.my_prop_grp = bpy.props.PointerProperty(type=MyPropertyGroup)
|
||||
|
||||
|
||||
# test this worked
|
||||
bpy.data.objects[0].my_properties.custom_1 = 22.0
|
||||
bpy.data.objects[0].my_prop_grp.custom_1 = 22.0
|
||||
|
Loading…
Reference in New Issue
Block a user