Luddy
04-28-2003, 07:12 AM
I'm trying to create a UI where I enter a mesh_# and it pops open the spine controls underneath. charMesh_1 has 3 spine joints, charMesh_2 has 6 joints.
I'm trying to update a slider based on a number ie. $input.
I can select a skinned object by $input and store the spine joints in an array.
Its similar to me creating a text command underneath. They way I have it it creates another text command which I don't want. I want it to take its place and update in the same window.
Ex.
//===============
sphere -n charMesh_1;
sphere -n charMesh_2;
sphere -n charMesh_3;
sphere -n charMesh_6;
select charMesh_1;
if ( `window -exists workPlease` )
deleteUI -window workPlease;
window workPlease;
columnLayout;
text -label "mesh_";
textField -width 25 -enterCommand "selByName" renTextField;
string $updateThis;
showWindow workPlease;
global proc selByName()
{
$input = `textField -query -tx "renTextField"`;
string $meshName = "charMesh_" + $input;
select $meshName;
string $updateThis = `text -label $meshName`;
}
I'm trying to update a slider based on a number ie. $input.
I can select a skinned object by $input and store the spine joints in an array.
Its similar to me creating a text command underneath. They way I have it it creates another text command which I don't want. I want it to take its place and update in the same window.
Ex.
//===============
sphere -n charMesh_1;
sphere -n charMesh_2;
sphere -n charMesh_3;
sphere -n charMesh_6;
select charMesh_1;
if ( `window -exists workPlease` )
deleteUI -window workPlease;
window workPlease;
columnLayout;
text -label "mesh_";
textField -width 25 -enterCommand "selByName" renTextField;
string $updateThis;
showWindow workPlease;
global proc selByName()
{
$input = `textField -query -tx "renTextField"`;
string $meshName = "charMesh_" + $input;
select $meshName;
string $updateThis = `text -label $meshName`;
}
