// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // Creation Date: 1 April 1996 // // // Description: // A function to hide the selected objects // global proc hideKeepSelection (string $items[], int $invertComponents) { if (size($items) != 0) { string $hidden[]; if ( $invertComponents ) $hidden = `hide -returnHidden -clearLastHidden -ic $items`; else $hidden = `hide -returnHidden -clearLastHidden $items`; global string $gLastHiddenSelection[]; clear $gLastHiddenSelection; int $counter=0; string $objects[] = `ls -typ transform -typ shape $hidden`; for ($object in $objects) $gLastHiddenSelection[$counter++] = $object; } else { warning (uiRes("m_hideKeepSelection.kNoObjects")); } }