PDA

View Full Version : channel box question


scarface1
05-22-2009, 10:26 AM
i've added a channel box to my UI for a rig and just to make it neater i want the channel box to display only the channelbox attributes and not the shape and output section.
thanks in advance....

s0ke
05-26-2009, 06:53 PM
You could use the fixedAttrList command.



window;
formLayout form;
channelBox -fixedAttrList {"tx","ty","rx","ry","rz","sx","sy","sz","v"} test;
formLayout -e
-af test "top" 0
-af test "left" 0
-af test "right" 0
-af test "bottom" 0
form;
showWindow;

s0ke
05-26-2009, 08:07 PM
This only seems to work in object mode at the moment, once you choose a selection type the shape node takes over and will once again show the INPUTS.

claydough
05-27-2009, 04:57 AM
how about a selection connection to an empty group that holds yer attrs?

in the following example, from a selection of an empty transform node...



{

string $sel[] = `ls -sl`; //

string $object[];

$object[0] = `selectionConnection -object $sel[0]`;

//begin

if ( `window -exists bobbi` )

deleteUI bobbi;

window -rtf 0 -wh 500 900 -topLeftCorner 20 20 bobbi;

paneLayout clyChannelPhun;

channelBox -mlc $object[0] dave;

showWindow;

}



delete selection connections with
deleteUI

CGTalk Moderation
05-27-2009, 04:57 AM
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.