Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Created January 18, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SEVEZ/f9d2c4c2f994c3029e616fdb25a47be6 to your computer and use it in GitHub Desktop.
Save SEVEZ/f9d2c4c2f994c3029e616fdb25a47be6 to your computer and use it in GitHub Desktop.
Toggle workspaces
proc wsToggle(){
string $W,$W1,$W2;
$W1 = "Modeling - Standard";
$W2 = "UV Editing";
$W = `workspaceLayoutManager -q -current`;
if ($W == $W1) workspaceLayoutManager -setCurrent $W2;
else workspaceLayoutManager -setCurrent $W1;
}
wsToggle;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment