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