Hi,
here is a simple, easy to use script that computes the rotation of several moving wheels with different/variable diameters. main purpose is massive animation of cars wheels.
. animators just need to key location ipos on the wheel objects. the script cares about wheels spinning and steering
. documented, frenchy-english as usual.
. works fine on paths or with keyframes
. out of wheel mode
. zero config. but for sure you can edit some vars.
. pored to blender 2.63a by Gert De Roost ( http://www.ewocprojects.be/index.html )
I did this for roubal who cares about really nice vehicle automatic animation with tires deformations, steering, suspensions… driver animation… and without ANY code, only with empties…wow.
try his car autodrive file if you don’t know it :yes: http://www.3d-synthesis.com/tutorialsenglish.html
you should keep an eye on this page
the script is also used in open city engine for car animation, with the opensteer AI plugin
littlenoe - wouldnt it be possible to make the changes needed in the wheel script by using an interface + some more scripting which to take the necessary params automatically?
hi abidos !
it could evolves like that :
. auto-link to scene
. maybe get rid of the empty thing ( I’ve to test but it should be possible. )
. auto diameter but as an option, one need to specify the diameter in some case (the wheels of a train, an axe with 2 gears with different diameters etc)
. naming convention option: 'apply to any object whose name begins with ‘nameOfMyWheels’
. ipo recording.
. rotate the wheels on global z / local x too, when not on a path, as an option.
. … any other needs ?
I’m a bit reluctant too make it evolves a lot (gui), because of the incoming 2.5 and all the changes…
so I think there won’t be a gui for the incoming options and just some more booleans in the EDIT section of the script.
. zero setup :
. save the script in your script folder then run it from the blender object menu.
. name your objects wheel, wheel.001, wheelBig etc… go to frame 1, it’s ready to run.
. no need for an additional object to determine the rotation direction.
. by default, if not attached to a curve, the wheel object will also turn ‘left’ or ‘right’ (RotateZ=True)
so you just need to key the wheel location, the script cares about the needed rotations, it’s a kind of follow path with no curve + a wheel rotation.
. see options in the script for more control.
tested with 2.49 it should work without python.
a bug due to the euler flip thing… in fact : due to the antiflip thing I wrote for the euler flip limitation.
but it should be ok most of the time.
Made a UV Sphere, named it wheel, added key frame for location on frame 1 and 50. Linked script to run every frame change, played animation from frame 1 and the sphere moved but did not rotate Im sure its something simple.
I am not in need of this script right now but it is EXTREMELY useful, im definitely keeping it in my collection of useful scripts.
@dail :
maybe there’s a rotation key ?
also try a ctrl-A on the object.
the script should also link itself to the scene when loading. update the script menu then load it from the object menu.
use the link in the post, not the one on my site.
I use winXP, blender 2.49, (python 2.5 but I think it works without python)
for one wheel not attached to a path, frame 1, the console should say something like :
.wheel rotation script v0.0.38 - init
auto-select :
-------------
found wheel
wheel list :
------------
wheel,diameter auto,rotateZ True
it’s strange… anyway it works at the occasion could you tell me if you always have to alt-p ?
… maybe you load it directly from the text window ‘open’ menu, and not from blender object menu. thanks if you have some time to give me details, I’m not used to menu integration.
made a similar script a few years ago.
The difference was that it didn’t require diameter etc other manually incerted data, instead used the location of two bones: center and ground.
hi! this is an awesome script! but how do you manage to control the wheels rotation speed? i mean…like start off slow at first then speed up like crazy. i got it working except the wheels rotation speed.
cheers! i like this script! hehe thanks! :eyebrowlift: