View Full Version : Need help with Xpresso
TemperalVision 12-17-2002, 06:40 PM I just downloaded the R8 demo and have been trying to create a simple Xpresso expression.
What I am trying to do is have a ball linked to a null object which controls the rotation of the ball. I got the expression to work but I can't seem to control the speed that the ball rotates.It's going WAY to fast.
Does anyone know how to control this?:bowdown:
|
|
Per-Anders
12-17-2002, 06:47 PM
there are lots of ways to control this, but here's a simle way
add in a math node RMB->New Node->Xpresso->Calculate->Math and then link the input position of the null to the math node, set teh made node to divide, and divide by however many times you want, then link the output to the rotation of your ball.
you can also use a rangemapper for even more control, (i.e. you can tell it that say 100units=1turn in radians ( angles in xpresso are in general worked out using radians as default, which i think is a bit of a mistake as everywhere else in teh pakcage they're degrees, but you can convet too and from with the degree node and with the range mapper so it's no problem, and radians make life easier for certain trigonomic stuff andyhow if you didn't know 1 rotation in radians = 2*PI), or stuff like that)
anyhow play, i hope that htis gives you a couple of ideas and helps :)
TemperalVision
12-17-2002, 06:55 PM
Allright! I got it working perfectly!
Thanx a million:beer:
CGTalk Moderation
01-14-2006, 12:00 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.