AddCamera (X3DObject)
Description
Creates a new Camera object given a camera preset name/object. An interest is also created as a sibling of the new camera. The new camera object is parented under this X3DObject.
Note: This method only creates a Camera object and its interest, whereas X3DObject.AddCameraRig creates a camera root object with the camera and its interest as children.
Scripting Syntax
X3DObject.AddCamera( Preset, [Name] )
C# Syntax
Camera X3DObject.AddCamera( Object in_Preset, String in_name );Parameters
|
Parameter |
Type |
Description |
|
Preset |
Camera Primitive Preset |
Preset for type of camera Possible Values: • Camera: Perspective camera • Orthographic: Orthographic camera • Telephoto: Telephoto camera • Wide_Angle: Wide angle camera |
|
Name |
Name of new Camera |
Return Value
Examples
VBScript Example
set oRoot = Application.ActiveProject.ActiveScene.Root
set oCam = oRoot.AddCamera( "Camera", "MyCamera" )Autodesk Softimage v7.5