Alright, here’s the issue. I actually have a script on some bones of the legs/arms of my character to make the leg/arm stretch. It works with a measure tool, so as far as the distance tool is higher than the base value (when the character is at his initial pose), the arms/legs will stretch.
The problem is that when I scale the Master Icon of my character, it scale the distances tools too, so make the character arms and legs stretch, but I don't want it. I want that the arms and legs don't stretch when I scale the whole character with the Master Icon.
So yeah, all I want is to be able to scale the whole character with the Master Icon without the legs and arms stretch. (Don't know if it's clear here?)
Here's the initial script for one bone of the left leg:
[b]1-[/b]
[b]if ( RG_L_legStretchDistanceDimension_Shape1.distance > 7 ) { BD_L_leg_1.scaleZ = (RG_L_legStretchDistanceDimension_Shape1.distance/7);
} else {
BD_L_leg_1.scaleZ = 1;
}[/b]
7 is the Distance value of the distance tool.
And here's the script attempt (that don't works actually) to add (multiply) the Master Icon stretch value to the distance tool value. This way it's supposed to cancel the extra stretch when I scale the Master Icon.
I used to try with only the Scale X of the Master Icon and it "worked", only, when I scaled the Master Icon in Y or Z, it didn't worked. So I attempted to connect all the 3 axis separately, but it don't works. I guess it's just the way to write the script, telling I want it to multiply the Distance Tool value (7) with the X, Y or Z of the Master Icon (or only X and Z or only Y and X etc etc).
Here's the script attempt:
[b]
2-[/b]
[b]if ( RG_L_legStretchDistanceDimension_Shape1.distance > 7*(RG_C_masterIcon_1.scaleX || RG_C_masterIcon_1.scaleY || RG_C_masterIcon_1.scaleZ))
{ BD_L_leg_1.scaleZ = (RG_L_legStretchDistanceDimension_Shape1.distance/7*(RG_C_masterIcon_1.scaleX || RG_C_masterIcon_1.scaleY || RG_C_masterIcon_1.scaleZ) );
} else {
BD_L_leg_1.scaleZ = 1;
}[/b]
Here's some picture to show what happen (Maybe it'll help to understand the problem)
1. Initial pose:
[img]http://i206.photobucket.com/albums/bb52/oli_briss/InitialPose.jpg[/img]
2. Normal leg stretch (without scaling the Master Icon):
[img]http://i206.photobucket.com/albums/bb52/oli_briss/LegStretch.jpg[/img]
3. And now the problem it goes when I scale the Master Icon (the legs aren't stretched voluntarily they are at their initial pose (like on the 1st pic, only the Master Icon got scaled)) - What I want is that the pose stay like on the 1st pic when I scale the Master Icon.
[img]http://i206.photobucket.com/albums/bb52/oli_briss/ScaleMasterIcon.jpg[/img]