cwd - Current working directory has nothing to do with workspace, maya uses
it for file dialogs and such.

workspace.path should point to workspace root.

On Wed, Mar 30, 2011 at 3:34 PM, ben cowell-thomas <[email protected]>wrote:

> Hello,
>
> I'm looking for some clarification on workspaces & projects in Pymel
> and Maya.
>
> Currently I'm switching projects using workspace.open(a_workspace) and
> I'm assuming that a workspace is the same as project, and indeed it
> seems that Maya is switching projects .. however when I go to an 'open
> file' dialog, my current project has switched, but the 'Look in:'
> section at the top is still pointing to the old project.
>
> I'm wondering if workspaces aren't quite the same as projects and if I
> need to do a bit more to fully switch between them.
>
> Also could anyone explain what the purpose of the workspace.getcwd()
> is ?, that seems to point to a different project than
> workspace.name() ?
>
> This seems to be one of the times where knowing MEL inside out before
> learning PyMel would have been useful, so forgive what is probably a
> newbie question. I'm new to PyMel which I'm very much enjoying having
> come from MaxScripting !.
>
> cheers
> ben
>
> --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to