Joint Stretching Problem

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  12 December 2017
Joint Stretching Problem

Hi Guys, I have a problem withStretching of Joints. As you can see, when the controller moving and the joints seems to be like dragged.
I have added the scripts into expression editor and it looks like this:

$ref_length = distanceDimensionShape1.distance + distanceDimensionShape2.distance;
$ik_length = IK_distanceDimensionShape.distance;
if($ik_length >= $ref_length){
ik_jnt2.scaleX = $ik_length/$ref_length;
}else{
ik_jnt2.scaleX = 1;
}

I put the scripts into another joints as well.
is there anyone could help me? Thanks
 
  01 January 2018
What is the question?
It is quite dificult to tell without knowing what is what in the scene.

I would not do it with expressions, it is way better to use maya utility nodes, in this case a condition node for the if/else statement and multiply/divide nodes for the scaling factor.
To put this expression on other limbs you need to make copies of it and replace the names.
__________________
the one button to render them all
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:34 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.