Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Created January 18, 2018 18:30
Show Gist options
  • 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