Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm looking for APIs that help me to change the workspace from Model to Render.
I found in the forum an example to view all the Environments and I add two line to change the workspace (in my mind...) but nothing append.
import adsk.core, adsk.fusion, adsk.cam, traceback def run(context): ui = None try: app = adsk.core.Application.get() ui = app.userInterface print("\n\n") for workspace in ui.workspaces: print(workspace.id) ui.workspaces.id = "FusionRenderEnvironment" ui.workspaces.itemById = "FusionRenderEnvironment" except: if ui: ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
Someone can help me ?
Thank you
Dino
Solved! Go to Solution.