View Full Version : Lookat_constraint
10-20-2003, 09:48 AM
How do one ad a look at target in scripting? I don't know enough to interpret the help file correctly.
Yan Loong Wong
10-20-2003, 06:05 PM
--change rotation controller to look at:
$ObjectA.rotation.controller = LookAt_constraint()
some other handy ones:
--add lookat target:
$ObjectA.rotation.controller.appendtarget $ObjectB 100
--specify look at axis. 0 = x, 1 = y, 2 = z:
$ObjectA.rotation.controller.target_axis = 0
I'm not a coder too, so i encountered the same problem at first when i noticed some maxscript command don't show up in the listener. I found it helpful if u go into the MaxScript Reference and type in what u're looking for at the search or index tap, that usually results in what i want. hope these helps.
10-20-2003, 08:52 PM
thank you so very much. This prob made my whole work progress stand still.
01-16-2006, 10:00 AM
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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.