v12.0 (2014)
Creates a camera primitive object without an interest.
oReturn = GetPrimCameraWithoutInterest( [PresetObj], [Name], [Parent], [Primitive], [3DObjCamera] ); |
Returns the camera object (an X3DObject object).
Parameter | Type | Description |
---|---|---|
PresetObj | String or a preset object (see SIGetPreset) | Any preset for Camera
Primitives
Default Value: "Camera" |
Name | String | Name of the camera. |
Parent | String | Parent object for the
camera.
Default Value: "Scene_Root" |
Primitive | Primitive | Returns the camera primitive. |
3DObjCamera | Camera | Returns the camera object. |
Dim cam Dim prim GetPrimCameraWithoutInterest "Camera", "Bob",, prim, cam LogMessage "Camera object named " + cam.FullName + " created" LogMessage "Camera primitive named " + prim.FullName + " created" |
RetVal = Application.GetPrimCameraWithoutInterest("","","") # Extract the objective from the ISIVTCollection CamPrim = RetVal( "Primitive" ) CamObj = RetVal( "3DObjCamera" ) Application.LogMessage( CamPrim.FullName ) Application.LogMessage( CamObj.FullName ) # INFO : Camera1.camera # INFO : Camera1 |