CGTalk > Software > Autodesk 3ds max
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 02-12-2013, 06:30 PM   #1
New Member
Join Date: Feb 2013
Posts: 1
Suspension + Geometry Constraint problem

Hello, first time posting here.

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.
Old 02-12-2013, 06:30 PM   #2
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:07 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.