SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
MAYA:
MAYA Forum
MAYA Tutorials
MAYA
Stupid Math Question
Cow Forums
:
MAYA
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
Stupid Math Question
by
Adam Benson
on Oct 27, 2009 at 12:01:02 am
Some times the simplest math turns out to be the stupidest math in Maya. Here's my problem. I need an equation that takes one value and subtracts it from 90.
float $newValue = (90-$someValue.rotateZ);
Except, that doesn't work. I've tried all kinds of variations of this.
float $newValue;
$newValue=90-$someValue.rotateZ;
Doesn't work. I've tried separating out everything with (). Nope.
I've even tried
$newValue=abs($someValue.rotateZ-90);
Again, Doesn't work. Plus, that's still wrong anyway!
I've also tried
int $ninty = 90;
float $newValue;
$newValue = $ninty - $someValue.rotateZ;
The only thing that works is
$newValue = $someValue.rotateZ - 90;
But who cares, that's a different value than I need. I need the value subtracted from 90, so that I can use that value to drive the other main expression. It's burning my freakin' brain!
Does anyone know how to subtract the rotation of one object from 90 to get a usable result? This should be working, but isn't. Of all the stupid things!!
The end result is supposed to work like what I imagine this would.
$gearRemain = 90 - landingGearLf.rotateZ;
landingGearRt.rotateZ=landingGearLf.rotateZ+$gearRemain;
Real simple. Doesn't work.
Thanks in advance for your help.
Adam Benson
Visual Effects Artist/Musician/Sound Engineer/Editor
http://www.SleepDeprivedProductions.com
http://www.SleepDeprivedFilms.com
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
Stupid Math Question
by Adam Benson on Oct 27, 2009 at 12:01:02 am
Re: Stupid Math Question
by Adam Benson on Oct 27, 2009 at 12:11:53 am
Re: Stupid Math Question
by Michiel Duvekot on Oct 27, 2009 at 3:21:48 am
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key.
Read more...
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]