Hello!
So far I have always produced new views to set the visibility of parts in an assembly. But with many parts I have to create a great number of views to show for examples different configurations of an assembly.
Is there a way to toggle part visibility? I would love to creat a button where I can turn parts on/off!
Thanks a lot for any help!
http://www.acrobatusers.com/tech-talks
As a very basic example, if you have a single 3D viewport on a page, and in that scene there's a part named "elbow", then assigning this code to a button on your page will make it invisible:
There's no tree-level wildcard option in JS, so if you want to make an entire branch invisible you have to go through the meshes in the scene and check the name of the node's ".parent" object to find which ones to change. In the download pack for our tech talk there are some utility functions to make that kind of thing simpler.