Lomax
01-28-2004, 04:51 PM
Hopefully some one can help me with this -
say I group an object to itself, and the group is automatically named group1. I'm trying to figure out how to rename the group by taking the object's name and adding "_Ctrl" to it. So far in my attempts, all I get are either syntax errors or "undeclared variables"
This is the current attempt at the script:
select group1;
$par = `listRelatives -c`;
$name = $par + "_Ctrl";
rename group1 $name;
say I group an object to itself, and the group is automatically named group1. I'm trying to figure out how to rename the group by taking the object's name and adding "_Ctrl" to it. So far in my attempts, all I get are either syntax errors or "undeclared variables"
This is the current attempt at the script:
select group1;
$par = `listRelatives -c`;
$name = $par + "_Ctrl";
rename group1 $name;
