PDA

View Full Version : display Toggle funktion for Editors


Caypiranha
10-19-2006, 04:46 AM
Heya,

I once had a display toggle Funktion for the Outliner. There was a short script, that was binded with a specified Hotkey - something like that...

The great Advantage for this: once you have opened 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! =)

brubin
10-23-2006, 11:41 PM
hi,

assuming that your outliner-window is a default one, and the name is "outlinerPanel1Window"
(you can check with: lsUI -window), then

window -e -i 1 outlinerPanel1Window
will iconify/minimize an open outliner, while

window -e -i 0 outlinerPanel1Window
will reopen it, open tabs remain open.

so,
a simple toggle function could work like this on a hotkey:

{
int $temp = `window -q -i outlinerPanel1Window` ;
window -e -i (abs($temp - 1)) outlinerPanel1Window ;
}

this approach obviously does only work with a tearoff outliner,
since i don't use savedLayouts with inline panels and such i don't know how to deal with that, but that wasn't your question, right? ;)

HIH
s.

katisss
10-15-2007, 05:43 PM
getPanel -type outlinerPanel;
works for me

CGTalk Moderation
10-15-2007, 05:43 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.