Creating Camera switcher -2

By Anil Choudhary - 4 Dec, 2017 - 3ds Max

In the previous post we captured the two-camera position & rotation.

Test Engine / Flow: X=1.58607 Y=2.08991 Z=3.21184X=-5.39709 Y=5.66901 Z=-46.2772

Test Engine / Flow: X=20.3074 Y=3.36486 Z=3.03528X=-14.7695 Y=-7.24623 Z=25.5669

In order to use these number in the flow later we will need to create two cameras in the level viewport with the above values.

Continue from the post “Creating Camera switcher -Part1” or download project “here” and open Level “camera switcher with hotkey_Start_Part2

1.      Create - Camera

2.      Click in the viewport

3.      Change the name to camera1

4.      Type in the first xyz in the position field

5.      Type the second xyz in the rotation field.

6.      Do the same for the second camera and name is camera2

Note: If you don’t want to create cameras open level “camera switcher with hotkey_Start_Part2_with_Cameras”

With the camera created in the level we are now ready to create the flow. To identify the level cameras, we’ll use the Level Unit and Get Unit Camera node. We will take the position and rotation values, using the same nodes as the previous post, to set the values to the current camera using the Set Camera Local Position and Set Camera Local Rotation nodes.

1.      Create a “Level Unit” node (Data – Level Unit)

2.      From the list select “camera1” as the Set Unit

3.      Create a “Get Unit Camera” node (Unit – Get Unit Camera)

4.      From the list select “camera” as the Camera Name

5.      Hook the “Unit” of “Level Unit” to the “Unit” of “Get Unit Camera

6.      Create a “Get Camera Local Position” node (Camera - Get Camera Local Position)

7.      Create a “Get Camera Local Rotation” node (Camera - Get Camera Local Rotation)

8.      Hook the “unit” of “Level Unit” to the “unit” of “Get Camera Local Position” & “Get Camera Local Rotation

9.      Hook the “Camera” of “Get Unit Camera” to the “Camera” of “Get Camera Local Position” & “Get Camera Local Rotation

10.  Create a “Get Active Camera” node (Camera - Get Active Camera)

11.  Create a “Set Camera Local Position” node (Camera - Set Camera Local Position)

12.  Create a “Set Camera Local Rotation” node (Camera - Set Camera Local Rotation)

13.  Hook the “Camera” & “unit” of “Get Active Camera” to the “Camera” & “unit” of “Set Camera Local Position” & “Set Camera Local Rotation

14.  Hook the “Position” of “Get Camera Local Position” to the “Position” of “Set Camera Local Position

15.  Hook the “Rotation” of “Get Camera Local Rotation” to the “Position” of “Set Camera Local Rotation

16.  Create a “Keyboard Button” node (Input – Key Board Button)

17.  From the list select “2” as the Button Name

18.  Hook the “Pressed” of “Keyboard Button” to the “In” of “Set Camera Local Position” & “Set Camera Local Rotation

19.  Copy the above nodes and modify the Level unit to “camera2” (step 2) & change the Keyboard button to ”3” (Step 18)

 

Run Level and hit 2 and 3

Screencast for “Creating Camera switcher -2” and the project  (open level “camera switcher with hotkey_Final_part1”).

Posted By
Published In
Tags
  • 3ds Max
  • Film & VFX
  • Games
  • Design Visualization
0 Comments
To post a comment please login or register