Message 1 of 2
Workspace in Python?

Not applicable
04-20-2014
10:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to create a new project through Python by using the workspace command but I can't even get the examples in the docs to work. For instance this generates an error for me:
import maya.cmds as cmds cmds.workspace( 'newWorkspace', newWorkspace=True ) cmds.workspace( baseWorkspace='default' )
What is the right way to do it?
cheers