Hi,
I am using BlenderProc for the model that generated with my addon. However, it always ouputs the error Exception: The obj: 5555_Bottom does not have the attribute: cp_category_id, striped: category_id. Maybe try a default value. Because the model is automatic generated with code, I want to ask if there is any possibility to add this cp_category_id property using python?
Thank you!
Hey,
you can easily set the custom property cp_category_id via a module:
{
"module": "manipulators.EntityManipulator",
"config": {
"selector": {
"provider": "getter.Entity",
"conditions": {
"name": '5555_Bottom',
"type": "MESH"
}
},
"cp_category_id": 10 # here you should use the correct value
}
},
````
If you want to do it in your own module, you can always just do:
```python
obj = bpy.data.objects["5555_Bottom"]
obj["category_id"] = 10
Best,
Max
Thanks! I understand
Most helpful comment
Hey,
you can easily set the custom property
cp_category_idvia a module:Best,
Max