View Full Version : Expresso- gotta be negative..

07-10-2008, 07:03 AM
How do i do this in expresso?

If input is >90 then input = input - 360

As i have a little wooden ship that keeps on capsizing due to a faulty calculation.

Should be simple but i just can't work it out, i think the scurvy has set in..


07-10-2008, 07:34 AM
XPresso may be using radians rather than degrees (depending on what nodes), thus you have to either use radians yourself or use the conversion nodes to convert between degrees and radians and then back again before setting the value.

07-10-2008, 07:44 AM
Here is one, utilizing a compare node and a switch---

if - 360 refers to degrees, then it gets more tricky as you have to convert from and to radians.
Link File (http://www.stimulated.de/c4d/test90Limit.zip)


07-10-2008, 07:45 AM
Just checked and it is using degrees.

But instead of ranging between -10 and 10 degrees, it ranges between 0-10 and 350-359.

Thats my problem, so any ideas?

07-10-2008, 08:01 AM
can you post a simplified file?

c4d uses radians internally to deal with rotation, not degrees.

07-10-2008, 08:07 AM
Wuensch, your a star. I've re-posted what you made, but updated to the angles.

Your fabulous mate and your welcome aboard anytime..

07-10-2008, 08:24 AM
Happy it helped :-)

07-10-2008, 11:12 PM
So here we go, this is where the equation went..


CGTalk Moderation
07-10-2008, 11:12 PM
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.