Apply transformations to nested DC components
-
I have a model of a dock system. The system contains 4'x8' Dynamic components that are 'patterned' using DC functions based on the 'copies'. The model contains nested components that make the dock system into an L or T shape. I am trying to write a script to find the X axis location of each section with respect to the model origin and modify a DC value 'waterdepth' based on the x axis location.
My initial approach is to get the x axis value of a vertice of the bounding box, but I do not know how to apply the parent transformations of the nested components. Is there a better way of find the bounding box location with respect to the top level model origin? The bounding box method is working for first level components, but the lower level components return untransformed values.
Hopefully this is clearer than mud...
-
You need to keep applying '
parent.transformation
' to it...If it's being edited the '
model.edit_tranform
' helps...
Advertisement