Re: collapse floating windows

Date : Thu, 26 Apr 2007 09:53:14 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: collapse floating windows
Hi David,

the few line below toggle a minimize of the Keying Panel. Also, if no floating Keying Panel is found, it creates a new one on the fly. You can make the script a command and bind it to a keyboard shortcut. Hope that helps! :)

Cheers!

   -André

var oLayout = Desktop.ActiveLayout;
var eViews = new Enumerator(oLayout.Views);
var oFound = false;
while(!eViews.atEnd()){
 if((eViews.item().Name == "Keying Panel") && eViews.item().Floating){
   if(eViews.item().State == 0){
     eViews.item().State = 2;
   }
   else{
     eViews.item().State = 0;
   }
   oFound = true;
 }
 eViews.moveNext();
}
if(!oFound){
 oLayout.CreateView("Keying Panel", "Keying Panel");
}


David Gallagher wrote:

(v 5.11)
I'm looking to make a hotkey to collapse/expand a floating window. In this case, the Keying Panel. I would have it permanently there, but it slows down modeling update sometimes, so I like to hide it by either minimizing it or collapsing it. I'm annoyed by double clicks.


By the way, I really wish you could pin the Key Panel so it wouldn't update with selection. Really, really wish.

Ideas?


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.