-
After recent updates, the How can I go back to the previous type, I was using its function Should I switch to other approach in latest library version? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, the Python module has been updated to match the C++ API. You can now check an object for the 'ObjectMesh' type and retrieve its mesh using the if obj.typeName() == 'ObjectMesh':
mesh = obj.mesh()
mesh.transform(obj.worldXf())
... Or you could use these methods to re-create the def extractMesh(obj):
if obj.typeName() == 'ObjectMesh':
return obj.mesh()
if mesh := extractMesh(obj):
mesh.transform(obj.worldXf())
... |
Beta Was this translation helpful? Give feedback.
You can process it as a usual Object instance because RootObject is its subclass and contains the
children()
method for iterating.