Message 1 of 2

Not applicable
06-22-2017
12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! I want to make Isolate Selection in all views at the same time. There ia my script, but it hide all objects even selected. Where is an error?
{ string $panels[] = `getPanel -type modelPanel`; //names of all viewports
string $currentPanel; //current array element
//iteration over each element of the array
for ($currentPanel in $panels) {
string $state = `isolateSelect -q -state $currentPanel`; //state of current viewport
//isolate on-off checking
if ($state)
{isolateSelect -state 0 $currentPanel;}
else {isolateSelect -state 1 $currentPanel;}
}
}
Thanks
Solved! Go to Solution.