Message 1 of 5
Local Render through API

Not applicable
07-20-2020
07:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is a pickup upon an item at the end of the In-Canvas render thread . . .
https://forums.autodesk.com/t5/fusion-360-api-and-scripts/in-canvas-render-through-api/td-p/9618616
With In-Canvas render of scripted animations (with limited resolution and with a hack) and Image capture in Design mode (not rendered but any resolution) implemented in the API, now for the real deal . . . Implement Local render (the teapot icon dialog) and save the result through the API.
Assuming that the Local Render selection and presets are setup manually, the API must:
- Execute the render ("push" the Render button in the render dialog) . . . it is already possible to get into this dialog through the API but I'd think that not really necessary with an "Execute Local Render" command.
- Don't return to the script until the render is finished (the render times are long and the adsk.doEvents() "timing" loop hack is a concern)
- Access the latest entry in the render gallery and write it to a file path&name defined in the API
- Hopefully, delete the gallery entry to preclude manual cleanup
Is this possible?
Render dialog suggestions:
- Frame the model to show the image that will be produced with each format selection (preset and custom)
- Add 4k to the video preset selections
Thanks