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.
Camera X3DObject.AddCamera( Object in_Preset, String in_name ); |
oReturn = X3DObject.AddCamera( Preset, [Name] ); |
Parameter | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Preset | Camera Primitive Preset |
Preset for type of camera
|
||||||||||
Name | String | Name of new Camera |
set oRoot = Application.ActiveProject.ActiveScene.Root set oCam = oRoot.AddCamera( "Camera", "MyCamera" ) |