PDA

View Full Version : Camera


arunspooja
11-20-2006, 04:56 AM
Hai Good Morning

I have two cameras in a scene

Now i need to snap one camera to the position of another camera

ie, one camera's rotation and translate values are assigned to the another camera, to align both cameras in same place

How it can be done using max scripting

I tried using

firstCamera.rotation=secondCamera.rotation
firstCamera.position=secondCamera.position

but its showing error

if any one knows kindly reply

Thankyou

Bobo
11-20-2006, 05:28 AM
Hai Good Morning

I have two cameras in a scene

Now i need to snap one camera to the position of another camera

ie, one camera's rotation and translate values are assigned to the another camera, to align both cameras in same place

How it can be done using max scripting

I tried using

firstCamera.rotation=secondCamera.rotation
firstCamera.position=secondCamera.position

but its showing error

if any one knows kindly reply

Thankyou

As long as both cameras are FREE cameras, you can say

firstCamera.transform = secondCamera.transform

If the second camera is Target Camera, it should also work.
If the first camera is a Target Camera, it is still possible, but slightly more tricky,
If both a Target Cameras, you would have to match the positions of the cameras and the targets.

arunspooja
11-20-2006, 05:53 AM
Thanks for the reply

Now its aligning properly Bobo

CGTalk Moderation
11-20-2006, 05:53 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.