|
Hi, so I’ve had Maya lock up very frequently when simply saving files. I thought it was a problem with my harddrive, but I’m still having the problem with a new computer all together.
I’ve finally narrowed it down oddly enough to a script I wrote to toggle the Isolate Select view in all viewports. If I have the isolation set, Maya will sometimes lock up when saving. Fortunately the file saves, but Maya doesn’t recover so I have to end process on it and restart it. I’ve used this script for years, it seems to just be a problem with 2009.
Anyone have ideas why Maya won’t recover after saving in this state? I’m using Windows 32bit.
Here’s my script:
global proc toggleIsolateSelect()
{
int $state = (!`isolateSelect -q -state modelPanel4`)
for($i=1; $i<=4; $i++)
{
isolateSelect -state $state ("modelPanel"+$i)
if(`objExists ("modelPanel" + $i + "ViewSelectedSet")`)
sets -cl ("modelPanel" + $i + "ViewSelectedSet")
isolateSelect -addSelected ("modelPanel"+$i)
}
}
|
|
|
|
Hi There,
I fixed your code a little bit :), only update the visible model panel.
global proc IsolateSelectAll()
{
string $activePanels[] = `getPanel -vis`;
int $state = ( !`isolateSelect -q -s modelPanel4` )
for( $activePanel in $activePanels )
{
if( "modelPanel" == `getPanel -to $activePanel` )
{
isolateSelect -s $state $activePanel;
if( `objExists( $activePanel + "ViewSelectedSet" )` )
{
sets -cl ( $activePanel + "ViewSelectedSet")
}
isolateSelect -as $activePanel;
}
}
}
Thank You,
Norbert Nacu
|
|
|