Mesh Custom Properties editing through the Blender API
New mesh Custom Property can be created through the Blender python API by executing the following code:
1 |
bpy.data.objects['object_name']['property_name'] = property_value |
with:
- object_name – name of the mesh
- property_name – new custom property name
- property_value – value of this new property
After executing this command, the new property will be created and will be available in the Properties window – Object panel – Custom Properties sub-panel.
Like any object custom properties, the created property has a number of parameters that can be accessed by clicking the Edit button. These parameters can also be changed through the API.
Mesh Custom Properties editing through the Blender APIRead More »