Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get current workspace name

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
keithdashkov
189 Views, 3 Replies

Get current workspace name

Hi. How can i get workspace name? I ve tried to use current flag cmds.workspaceLayoutManager( current=1 )

But after use this function python always return me "None".

Description says " 

" Get the name of the current layout."

And it is marked as boolean operation

3 REPLIES 3
Message 2 of 4
4w4ard
in reply to: keithdashkov

You could check manually?

Message 3 of 4
brian.kramer
in reply to: keithdashkov

You will need to include the query flag.

Try either of the following:

MEL:

workspaceLayoutManager -query -current;

Python:

cmds.workspaceLayoutManager(query=True, current=True);

 


Brian Kramer
Software Developer
Message 4 of 4
keithdashkov
in reply to: brian.kramer

Thank you!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report