View Full Version : Car Rig "MaxScript for Speed" Carbon ;)

06-04-2007, 12:19 PM
Hi :)

Ive posted a realtime car rig thread on maxScript forum, but as the name said, its a rig topic, so Im posting here too.

This solution isnt good for production but Its something I was thinking about how to do it and its a little fun to play :)

Its a realtime car control, You animate it like on a video game.

Theres no path animation just maths going on.

I will implement a way of max saving the animation along timeline.

Im making my personal home page, it will be online soon and Ill make a kind of tutorial/explanation of this car rig approach.

Any comments and ideas for this will be appreciated.
Thanks :)

YouTube Link:

.mov Demo Link: (


06-04-2007, 04:02 PM
Hi Fabio,
Good Work!

Don't you think better to use a joystick instead of spinners?
It would be impossible to control direction and velocity at the same time with 2 spinners.
I would like to see you at ( a forensic animators site in spanish/brasilian with a couple of MXS users.

Thank you
Fernando Ferro
Buenos Aires

06-04-2007, 07:34 PM
Nice work, looks like a lot of fun to play with.

06-05-2007, 07:29 AM
hey man,i like your realtime car rig,it's looks awesome to play with
can you discribe us a bit more to know how to doing that?

06-05-2007, 07:10 PM
like i said before fabio, really cool stuff :)

i'd like to see more details as well

06-06-2007, 02:03 PM
Hi, thanks everyone, Glad you guys enjoyed. I Liked the joystick idea (Thanks Fernando) :)

I will implement this control to drive the car, just dont have the time now. :(

Im also figuring a way of saving the car animation thru time.

You Tube link:

.mpg link

( (

Fabio da Costa
06-06-2007, 04:50 PM
Amazing script.
If you could add the capability of converting the realtime animation into keyframes, it would be grate. A joystick/keyboard integration would de fantastic too. But the script is really cool already.

That's my friend showing what he does best.

Just keep it up, man.:thumbsup:

06-06-2007, 05:27 PM
Im also figuring a way of saving the car animation thru time.

It's easy to transform the trayectory in a spline. Some keyframes through animationRange and that's all.

06-07-2007, 12:39 AM

how do you do this kind of UI control ? this kind of round graph thing ...

Would be awesome for morph blending :D

06-07-2007, 04:23 AM
Hi Eric, this graph is just a bitmap image as a background of a rollout, the center quad is a checkbutton!

Im driving the spinner values on the "Pos" rollout with the position of the quad button.

Theres some math going on to return the center position of the quad button as [0,0]

Its a little bit snappy, but this way is much better to control the car

Here is another test.

YouTube Link: (

.mov Link: (

06-07-2007, 11:01 AM
Oh :sad:

I tought it was a custum UI item that could be placed anywhere in a rollout and have a local position :D

Anyway thanks !

06-07-2007, 03:31 PM
Hi Fabiomussarela,

I remember a good implementation of scripted manipulators, Bobo (as always ;-) did this:

The Joystick Manipulator is a Scripted Manipulator Plug-in.
It provides

Joystick-like Manipulator with X and Y values.
Separate Min. and Max. values for X and Y axes.
Auto-Center Option for interactive controlling.
Optional User Defined Colors
Option to copy Colors from other Joysticks, Spinners, Dials and SuperSliders

As you see the screenshot, its very similar what you are implementing but easy to customize and with standard wire controls.

the link to this manipulator (as others similar):
clicking on MAXScript 4 at the menu

Also there is a script to see the trajectory of a non selected object in real time.
I guess it could be the solution to get the trayectory as you want.

link to Susanta Dutta (authors page) to download it:

06-08-2007, 03:19 PM
Hi Ferro, thanks for pointing me to those scripts :)

The Bobos scripted manipulator is awesome :) Ill try it with the car.

Santas scripts are pretty cool too! :) but I think it wont work with my aproach!

The script needs to know more than just the path that the car is going. Needs some vectors, orientations and other stuff.

As soon as I got time , Ill be posting some more new stuff :)

Thank you for posting those infos , images and links :)

Heres the UI Control code , If someone want to use it or improve it :)

xControls = 0

rollout xValues "Pos"
spinner xDir "X" range:[-50,50,0]
spinner yDir "Y" range:[-50,50,0]

on xValues close do
destroyDialog xControls

createDialog xValues 100 70

rollout xControls "rollout"

checkButton btn "" checked: false width:10 height:10 pos:[45,45]

on xControls mousemove xPos do
mouseNewPos = xPos

if btn.checked == on do
lastPos = mouseNewPos - [5,5]
btn.pos = lastPos

xValues.xDir.value = (((mouseNewPos.y)-50)*-1)
xValues.yDir.value = (mouseNewPos.x)-50

on btn rightClick do
btn.pos = [45,45]
btn.checked = off
xValues.xDir.value = 0
xValues.yDir.value = 0

createDialog xControls 100 100

CGTalk Moderation
06-08-2007, 03:19 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.