Skip to content

Extending MeshObject class #968

Answered by cornerfarmer
njsymanz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @njsymanz,

the set_attr just makes sure that no other attributes are set, as they would not be persistent. MeshObject is just as wrapper around blender objects, so the idea is that all state is stored inside the blender object, e.g. using custom properties.
You can of course remove the set_attr in your custom class and add custom attributes, you just need to make sure that you keep the object instances in your script after loading and not use e.g. bproc.object.get_all_mesh_objects().

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by njsymanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants