View Full Version : [mel] i want to get all hierarchy scaleX what can i do?

10 October 2010, 03:35 AM
hello everyone, i 'm very new for programming and mel sorry to ask you guys a stupid question :P
i'm creating a UI

ok now in my scene i have those :
joint1 joint2 joint3 joint4

they parented (mean connected)

i want to the result below:
joint1.scaleX joint2.scaleX joint3.scaleX joint4.scaleX

after that i want to add them all to array, but i dont know what can i do

by the way i have a Script in front of that script:
select joint1;
select -hierarchy;
string $selAll[] = `ls -sl`

i need to use for in loop?

10 October 2010, 10:55 AM
string $sel[] = `ls -sl`;
string $tmp;
for ($i = 0; $i < `size $sel`; $i++){
$sel[$i] = ($sel[$i] + ".translateX");
print $sel;

10 October 2010, 06:45 AM
thank you very much man, that; work :thumbsup:

CGTalk Moderation
10 October 2010, 06:45 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.