Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Maya freezes when saving with 'Isolate Select view' command in all viewports.
  RSS 2.0 ATOM  

Maya freezes when saving with 'Isolate Select view' command in all viewports.
Rate this thread
 
35031
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 08 February 2008 10:14 AM

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)
 }
}


Replies: 0
avatar
  • Norbert
  • Posted: 20 November 2009 08:32 AM

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



Replies: 0