hi all
I know how to add a vector into UI:
//create a cube
polyCube -ch on -o on -cuv 4 ;
string $object[] = `ls -sl `;
string $obj;
string $window = `window -title "attrFieldGrp Example"`;
columnLayout;
for($i =0; $i< size($object); $i++)
{
text -label $object[$i];
attrFieldGrp -attribute ($object[$i] + ".translate");
attrFieldGrp -attribute ($object[$i] + ".rotate");
attrFieldGrp -attribute ($object[$i] + ".scale");
}
showWindow;
but when i add a matrix type , it doesn't work anymore:
//create a cube
polyCube -ch on -o on -cuv 4 ;
//create a window which lists the translate, rotate and scale
//fields of selected o transform bjects
string $object[] = `ls -sl `;
string $obj;
string $window = `window -title "attrFieldGrp Example"`;
columnLayout;
for($i =0; $i< size($object); $i++)
{
text -label $object[$i];
attrFieldGrp -attribute ($object[$i] + ".translate");
attrFieldGrp -attribute ($object[$i] + ".rotate");
attrFieldGrp -attribute ($object[$i] + ".scale");
attrFieldGrp -attribute ($object[$i] + ".worldMatrix");//<---------------NOTE
}
showWindow;
Could you tell me how to use attrFieldGrp or any other mel command to display a matrix ?
Thank you.