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...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement