What I wonder is if I intend to create 5 textfieldsgroups on top of each other should I just copy this code 4 times or can I reuse the variables and make it cleaner and nicer?
I assume I must give each textfield a different name to be able to query their text so I guess I can't do much about that. So beginning with Line 5, I need to copy the code and then create 4 additional stringNames to put at the top below the first "string $controllerNameTextField;"
string $controllerNameButtonCommand = `ls -sl`;
string $replacement = $controllerNameButtonCommand;
$controllerNameTextField = `textFieldButtonGrp
-label "Foot Control Name"
textFieldButtonGrp -edit -buttonCommand $replacement $controllerNameTextField;