Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm making a script that exports >50 3D printable objects from a few bodies by changing parameters with code. That part is fairly simple as long as you want to save everything that is currently visible, just feed ExportManager the rootComponent after making the changes. Except it would be nice to save specific named objects instead of the whole scene. How to do that?
So in other words, what should I use to export the Body 'box-top' instead of rootComponent in the below pseudo-code?
rootComp = design.rootComponent
...
for something in range(x,y):
fiddle_with_parameters()
...
exportMgr = adsk.fusion.ExportManager.cast(design.exportManager)
stlOptions = exportMgr.createC3MFExportOptions(rootComp)
...
exportMgr.execute(stlOptions)
Solved! Go to Solution.