- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Forgive me for using the wrong nomenclature, I'm fairly new to fusion360.
I have written a tool for the bloke doing our documentation that mimics display layers/render layers in Autodesk:maya in fusion.
While the ui is open, he can change the visibility of the components/occurrences in the ui and save those as a display layer. changing between the display layers in the ui, show him what is saved to each and then he can render/ save out the layer to a png file.
Now for more complex diagrams, we need to transform (x,y,z) some of the bolts to show how they would go inside the holes, i can record this info with :
xform = obj.transform
object_names[obj.name] = [xform.translation.x,xform.translation.y,xform.translation.z]
When i try to reapply the translation from the gui it does nothing.
xf_vector = adsk.core.Vector3D.create(stored_xform[0],stored_xform[1],stored_xform[2])
# this doesnt do anything, while the gui is running
#obj.transform.translation = xf_vector
Am i doing something wrong or is this a limitation of the api?
I should mention as well, im keeping a record of the original home translation of each of the meshes , so that after a translation, they can reset to the original location.
The other problem im running into, and im wondering if there is a workaround, when the ui is open you can change the visibility (light bulb) , but you cant select the components and move them around, is there a way to tell the ui to be non blocking ?
Edit: im doing this in the design context/menu.
Cheers
Kym
Solved! Go to Solution.