View Full Version : display Toggle funktion for Editors
Caypiranha 10-19-2006, 03:44 AM Heya,
I once had a display toggle Funktion for an Outliner. There was a short script, that was binded with a specified Hotkey - something like that...
The great Advantage for this: once you have opend a certain Position in your Groups/Nodes, you could close it (or minimize - I donīt remember really) and when it come up again, your Groups are still open.. and not collapsed again.
anybody nows how to do that?
thanx! =)
|
|
NateH
10-19-2006, 08:43 AM
OutlinerWindow;
That wont save what you had expanded though.. If you use like a 2 pane layout and make a persp and outliner and then just use spacebar to view it, it will stay but that's kindof a hack. Im not sure that I know how to do exactly what your asking for.
Caypiranha
10-20-2006, 01:14 AM
.. hi! - well, I was working already with that. It stays, but in this case, I bet, it was only minimized. Yes I remember, that it was in the taskbar (under Linux) ..it was something like alt-F1 assigned and it worked quite well.
cheers!
butCherHeLL
10-22-2006, 07:56 PM
//toggle the script editor
{
string $scriptWin = $gCommandWindow;
int $scriptTog = `window -q -vis $gCommandWindow`;
if ($scriptTog == 1)
window -edit -vis 0 $scriptWin;
else
showWindow $gCommandWindow;
};
butCherHeLL
10-22-2006, 07:57 PM
/*Toggle Walk Through Cameras:*/
string $currentPanel = `getPanel -underPointer`;
if ($currentPanel == "")
$currentPanel = `getPanel -withFocus`;
if(`getPanel -to $currentPanel` == "modelPanel")
{
if(`modelPanel -q -cam $currentPanel` == "top")
switchModelView front;
else if(`modelPanel -q -cam $currentPanel` == "front")
switchModelView side;
else if(`modelPanel -q -cam $currentPanel` == "side")
switchModelView Perspective;
else if(`modelPanel -q -cam $currentPanel` == "persp")
switchModelView top;
}
else
error "I'm sorry, but that is not a valid camera panel.";
butCherHeLL
10-22-2006, 07:57 PM
/*toggle Outliner*/
global proc toggleOutliner()
{
if ( `window -exists outlinerPanel1Window` )
deleteUI -window outlinerPanel1Window;
else
tearOffPanel "Outliner" "outlinerPanel" false;
};
toggleOutliner();
butCherHeLL
10-22-2006, 07:58 PM
/*toggleAttributeEditor*/
string $panel = `getPanel -withFocus`;
if (`window -exists AEWindow`)
{
deleteUI -window "AEWindow";
/*window -e -visible false AEWindow;*/
}
else
/*ShowAttributeEditorOrChannelBox;*/
openAEWindow;
setFocus $panel;
butCherHeLL
10-22-2006, 07:59 PM
/*toggle_graphEditor*/
if ( `window -exists graphEditor1Window` )
deleteUI -window graphEditor1Window;
else
tearOffPanel "Graph Editor" "graphEditor" true;
butCherHeLL
10-22-2006, 08:00 PM
/*Toggle Hypershade*/
if ( `window -exists hyperShadePanel1Window` )
deleteUI -window hyperShadePanel1Window;
else
tearOffPanel "Hypershade" "hyperShadePanel" true;
/*Toggle Hypergraph*/
if ( `window -exists hyperGraphPanel1Window` )
deleteUI -window hyperGraphPanel1Window;
else
tearOffPanel "Hypergraph" "hyperGraphPanel" true;
butCherHeLL
10-22-2006, 08:01 PM
/*Toggle Multilister*/
if ( `window -exists multiListerPanel1Window` )
deleteUI -window multiListerPanel1Window;
else
tearOffPanel "Multilister" "multiListerPanel" true;
/*Toggle RelationShip Editor*/
if ( `window -exists dynRelEdPanel1Window` )
deleteUI -window dynRelEdPanel1Window;
else
{
tearOffPanel "DynamicRelationshipEditor" "DynamicRelationshipEditor" false;
window -edit -toolbox true dynRelEdPanel1Window ;
};
butCherHeLL
10-22-2006, 08:01 PM
/* Toggle RenderView */
if ( `window -exists renderViewWindow` )
deleteUI -window renderViewWindow;
else
tearOffPanel "Render View" "renderWindowPanel" true;
butCherHeLL
10-22-2006, 08:02 PM
/*Toggle UV Texture Editor*/
if ( `window -exists polyTexturePlacementPanel1Window` )
deleteUI -window polyTexturePlacementPanel1Window;
else
tearOffPanel "UV Texture Editor" "polyTexturePlacementPanel" true;
CGTalk Moderation
10-22-2006, 08:02 PM
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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.