PDA

View Full Version : Looking for a mel script to ISOLATE Select


Raptor235
02-03-2002, 10:30 PM
Looking for a mel script to ISOLATE Select

Hey there I'm looking for some to write a tiny script for me so I can assgin it to my marking menus to quickly isolate the selected object in the current view I'm getting tired of goign up to Show / Isolate Select everytime I want to isolate an object. I tried copying the code that comes up when I actually do do that but I get into trouble when I'm using two view points and I isolate one view point switch over and do the other one so please help me out thanks

wrend
02-04-2002, 04:57 AM
Here ya go, check out the glut of scripts on Highend3d.
C.

// SCRIPT NAME: toggleIsolate
// VERSION: 1.0
// AUTHOR: Attila Sziklai
// UPDATED: Oct 13, 2001.
// TESTED ON: Maya 4.0
// DESCRIPTION: Toggles the Isolate Selection View in model panels.
//
// USAGE: Add a new command in the Hotkey Editor.
// Type "toggleIsolate" and assign a hotkey.
//

global proc toggleIsolate ()
{
int $isoView;
string $currentPanel = `getPanel -withFocus`;
string $panelType = `getPanel -to $currentPanel`;

if ($panelType == "modelPanel")
{
$isoView = (1 - `isolateSelect -q -s $currentPanel`);
enableIsolateSelect $currentPanel $isoView;
isoSelectAutoAddNewObjs $currentPanel 1; // Turns on AutoLoadNewObjects ... but without feedback in Menu
}

Raptor235
02-04-2002, 06:08 PM
actually someone suggested hotkeys and I found it in there thanks anyway

CGTalk Moderation
01-13-2006, 12:39 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.