PDA

View Full Version : Scripting Targeted Camera "Use Target as Up Node"


bnvm
09-15-2004, 05:40 PM
In the controllers menu for targeted cameras there is an checkbox option for this. How do I check this box using a script. Thanks in advance for your help.

-bnvm

Bobo
09-15-2004, 08:50 PM
In the controllers menu for targeted cameras there is an checkbox option for this. How do I check this box using a script. Thanks in advance for your help.

-bnvm

$Camera01.transform.controller.UseTargetAsUpNode = true

See "LookAt : Matrix3Controller" topic in the reference.

Historically speaking, Target Cameras and Lights still use the pre-Max 4 LookAt Transformation Controller instead of the new LookAt Constraint. That's why you have to access the transform.controller of a TargetCamera to change the property. Note that the checkbox will not be updated automatically in the Motion panel unless you change to another panel and go back to the Motion tab.

bnvm
09-15-2004, 08:55 PM
great thanks I have been messing with that for hours.


-bnvm

CGTalk Moderation
01-19-2006, 07: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.