Visibility prevents export and cannot be changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
At first I did not understand why my adding could 3D print the bodies that I specified, but some of the STL files were not usable. Their small size gave me a clue, and I discovered that a body must be visible in order to save as STL.
1. Why does the visibility of a body affect the ability to export the STL?
Even in the UI I can select a body in the browser and use it for operations, such as combine without it being visible.
My first attempt at a solution was to just to make the body visible "body.isVisible = True" but that did not work.
I then read every forum post related to visibility, and there are many. That is how I found out that there is also a different way to express visibility using isLightBulbOn (which is very strange because it uses a UI based term).
Because changing the visibility of a body doesn't not automatically propagate upward through the containment tree, it is necessary to manually start at the top and set each item to be visible. (I created another post about this from the user/UI perspective.)
I cannot find an easy way to just move from the body up through the hierarchy to set each container to visible (I mean isLightBulbOn).
2. What is the best way using the API to make the visibility changes necessary to allow the export manager to use STLExportOptions(body, filename) to actually export the body?