Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / Rigging / single axis lookat constraint
  RSS 2.0 ATOM  

single axis lookat constraint
Rate this thread
 
18127
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 36
  • Joined: 10 April 2008 09:26 PM

Got a question I know there is a way to do a single axis lookat constraint but for the life of me I cant seem to figure it out right now!  I have a camera moving around up and down left and right and I want a plane to look at that camera but only rotate in the z axis not the x or y, how do I set that up?



Replies: 0
avatar
  • Samab
  • Posted: 21 October 2008 09:51 AM

Here the plane is looking at a dummy attached to the camera, but in Link Info Inherit Move is disabled on the Z axis. Is this right?



Attachment Attachment
Replies: 0
avatar

no, i want it to only rotate in the z axis - no other movements!



Replies: 0
avatar
  • Samab
  • Posted: 21 October 2008 10:38 AM

See the file, I think that’s what it does.



Replies: 0
avatar

thanks i knew it was simpler then i was trying to make it, its just not something i do very much.... so if i copy that plane not say 100x as instance it will always be looking at the dummy right?



Replies: 0
avatar
  • Samab
  • Posted: 21 October 2008 10:51 AM

so if i copy that plane not say 100x as instance it will always be looking at the dummy right?

Yes, the copies will have the same look at controller.



Replies: 0
avatar
  • gan0nia
  • Posted: 22 October 2008 04:43 AM

hi,
Let me provide another approach.
You can do this by calculating the vactor between the plane object and camera
(this is your aiming row of matrix , just like look constraint does. )
the set the second and third to identity

Here is the example below.



Attachment Attachment
Replies: 1
/img/forum/dark/default_avatar.png

Is there a way to extend the script controller to use an axis other than the world Z? For example the Z-axis of another object?

That would be really handy!

MLB

Author: MLB

Replied: 16 November 2009 03:05 AM  
avatar
  • pen
  • Posted: 16 November 2009 12:39 PM

Another simple solution.

Make an object look at the object you are going to track.
Have the object you are applying the look at controller to parented an object that have been aligned to it.
Use the Expose Transform Helper to get the rotation values for the look at object.
Wire the object that you want to have rotate on only one axis to the exposed local axis that you need.



Paul Neale
PEN Productions Inc.
penproductions.ca / paulneale.com
Master Classes for Max, Mudbox and Composite
DotNet Tutorials

MX Driver Car and Trailer Rig On Sale!

Replies: 0




   
  Settings Choose Theme color: