Skip to content

Instantly share code, notes, and snippets.

@RedForty
Created October 20, 2022 20:28
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 RedForty/c64c822fc88c4417b190802601bbad38 to your computer and use it in GitHub Desktop.
Save RedForty/c64c822fc88c4417b190802601bbad38 to your computer and use it in GitHub Desktop.
string $currentPanel = `getPanel -withFocus`;
int $state = `isolateSelect -q -state $currentPanel`;
if ($state) {
enableIsolateSelect $currentPanel false;
} else {
enableIsolateSelect $currentPanel true;
$allMeshObjs = `ls -typ mesh`;
for ($eachObject in $allMeshObjs) {
isolateSelect -addDagObject $eachObject $currentPanel;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment