Notifications
Clear all

[Closed] Camera

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

2 Replies
1 Reply
(@bobo)
Joined: 1 year ago

Posts: 0

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.

Thanks for the reply

Now its aligning properly Bobo