I'm a novice 3ds Max user, using it to animate and composite for a school project. I followed a car rigging tutorial and adapted it to my Martian rover model with six wheels (The front and back sets of wheels are the only ones that affect the body pitch and roll). Tutorial here:
The rig has controllers that are constricted to a path the length of the suspension travel along the Z axis. To make my life 100x easier, I sought to have the z movement of the controller constrained to a bumpy surface along which the rover is travelling. My search resulted in the script from this thread:
theray = ray ($Sphere01.pos + [0,0,50]) [0,0,-1] --switch sphere01 with the object you're putting this on intersection = intersectRay $Plane01 theray -- Plane01 or the object you want to constrain to if intersection != undefined then ( intersection.pos.z ) else(0)
I can apply the code to a dummy and get exactly the results I want. However, the problem arises in having the z-position of the dummy influence the % along the path for the suspension controller. I've tried wire parameters to no avail, as my understanding of scripting and the like is very small.
ANy help or better techniques would be very appreciated.