PDA

View Full Version : Simple script help


jeffro
12-20-2003, 03:57 PM
I have a button that creates a cube. I want a window to pop up and prompt the user to enter a name for the cube and have it rename the newly created cube. Any help would be appreciated.

safakoner
12-20-2003, 04:51 PM
proc win_test()
{
window;
columnLayout ;
textField -editable true ren_f;
button -c "ren" button;
setParent;
showWindow;
}

proc ren()
{
polyCube;
string $sel[]=`ls -sl`;
rename $sel `textField -q -tx ren_f`;
}

win_test();

jeffro
12-20-2003, 05:07 PM
Thank you very much for that. It helped me out tremendously. Trying to make a UI for rigging a character faster and that was one of the last things I needed to get. Now just have to implement it and test.

CGTalk Moderation
01-17-2006, 12:00 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.