PDA

View Full Version : connect an integer to a string


Tornado7
06-01-2006, 12:58 PM
Hi guys,


I'm writing a script in which I'm generating, with a for cylce, some joint, renaming every joint using the cycle index; for example something like that:

for (int $i=1; $i<$n; $i++) {

joint -n "Spine"+$i;
}

to get n joints named Spine1 to Spinen. Obviously this syntax doesn't work... Can anyone tell me if exist a way to connect a sting to an integer variable?

Thanks for any answers

isoparmB
06-01-2006, 01:30 PM
for (int $i=1; $i<$n; $i++)
{
joint -n ("Spine" + $i);
}

Tornado7
06-01-2006, 01:37 PM
Ok. Thanks a lot :thumbsup:

CGTalk Moderation
06-01-2006, 01:37 PM
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.