Hi all:
I'm trying to write a simple isolateSelect toggle.
I have it partially working, but it doesn't update the selected geometry. While this could be a good feature to have (storing a set of visible objects/components), I'd like to get it working "normally".
Here's the proc. Based on using the viewport menus to do this, I don't think it should require the "loadselected" line.
CODE
global proc pixl_isolateSelected() {
string $curPanel = getPanel -up; //Get cam under pointer
print ($curPanel+"\n");
// If isolateSelect is 0, its disabled
if (isolateSelect -q -state $curPanel) isolateSelect -state 0 $curPanel;
else
{
isolateSelect -state 1 $curPanel;
isolateSelect -loadSelected $curPanel;
}
}// end pixl_isolateSelected()
Anyone see what's wrong?
Thanks.