Expression Execuation Error on File Open

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 08 August 2008   #1
Expression Execuation Error on File Open

When I open my rig file in Maya I get a warning at the bottom saying...

"// Error: An execution error occured in the expression Limb_Stretch. //
"

Yet when I initially built the expression and hit create I didnt get any errors, nor do I get any errors if I hit Edit in the expression editor.

What I built the expression to do works I am just confused by the error I get when I launch the file in Maya.

Also here is my expression

// Arm Stretch

if (l_Arm_Stretchy_DistShape.distance >= l_Arm_Stretchy_MD.input1X){

be_L_Shld_JNT_IK_Guide.scaleX = l_Arm_Stretchy_DistShape.distance/l_Arm_Stretchy_MD.input1X;

be_L_Elbow_JNT_IK_Guide.scaleX = l_Arm_Stretchy_DistShape.distance/l_Arm_Stretchy_MD.input1X;

} else{

be_L_Shld_JNT_IK_Guide.scaleX = 1;

be_L_Elbow_JNT_IK_Guide.scaleX = 1;

}

__________________
Jr Artist

-Modeling- -Character Set Up-

www.josh-lynch.com

Cottage Scene
 
Old 08 August 2008   #2
does l_Arm_Stretchy_MD.input1X default to 0.0?

Cause if so, I'll assume it's a divide by 0 error. Make sure your if statements also states that it cannot equal (!=) 0
 
Old 08 August 2008   #3
This is a "division by 0 error", and a really boring one to

When you create a multiplyDivide node, just change all the inputs so that none of them are 0 like they are by default .... even if you only use input1x, set Y & Z to something different than 0 anyway, or you will get that error.

// Otto
 
Old 08 August 2008   #4
Smile

These errors also occur if you referencing file...i.e. multiple expressions are created doing the same stuff so there is the error.
 
Old 08 August 2008   #5
Thread automatically closed

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.
 
Thread Closed 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 11:11 AM.


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