Ocamera
Attributes
-
ENGLISH NAME : CameraObject
-
NAME : Ocamera
-
INCLUDE : Obase
-
PATH : c4dplugin/description/ocamera.res
-
PLUGIN : c4dplugin
-
MAXON online help (may not exist): OCAMERA
Elements
Example Code
The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown.
This code is just to show you how to access the values for getting and setting the parameters.
Python
import c4d
from c4d import gui
def main():
obj = c4d.BaseObject(c4d.Ocamera)
doc.InsertObject(obj)
c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
#You can set parameters two different ways.
#First way
obj[c4d.CAMERA_PROJECTION] = c4d.Pperspective
obj[c4d.CAMERA_FOCUS] = 0.1
obj[c4d.CAMERAOBJECT_FOCUS_PRESET] = c4d.CAMERAOBJECT_FOCUS_PRESET_CUSTOM
obj[c4d.CAMERAOBJECT_APERTURE] = 0.1
obj[c4d.CAMERAOBJECT_APERTURE_PRESET] = c4d.CAMERAOBJECT_APERTURE_PRESET_CUSTOM
obj[c4d.CAMERAOBJECT_FOV] = 0.1
obj[c4d.CAMERAOBJECT_FOV_VERTICAL] = 0.1
obj[c4d.CAMERA_ZOOM] = 0.1
obj[c4d.CAMERAOBJECT_FILM_OFFSET_X] = 0.1
obj[c4d.CAMERAOBJECT_FILM_OFFSET_Y] = 0.1
obj[c4d.CAMERAOBJECT_TARGETDISTANCE] = 0.1
obj[c4d.CAMERAOBJECT_USETARGETOBJECT] = True
obj[c4d.CAMERAOBJECT_WHITE_BALANCE_TEMPERATURE] = 0.1
obj[c4d.CAMERAOBJECT_WHITE_BALANCE] = c4d.CAMERAOBJECT_WHITE_BALANCE_CUSTOM
obj[c4d.CAMERAOBJECT_WHITE_BALANCE_LIGHTS_ONLY] = True
obj[c4d.CAMERAOBJECT_AFX] = True
obj[c4d.CAMERAOBJECT_MOVIECAMERA] = True
obj[c4d.CAMERAOBJECT_FNUMBER_VALUE] = 0.1
obj[c4d.CAMERAOBJECT_FNUMBER] = c4d.CAMERAOBJECT_FNUMBER_CUSTOM
obj[c4d.CAMERAOBJECT_EXPOSURE] = True
obj[c4d.CAMERAOBJECT_ISO_VALUE] = 0.1
obj[c4d.CAMERAOBJECT_ISO_PRESET] = c4d.CAMERAOBJECT_ISO_PRESET_CUSTOM
obj[c4d.CAMERAOBJECT_GAIN_VALUE] = 0.1
obj[c4d.CAMERAOBJECT_SHUTTER_SPEED_VALUE] = 0.1
obj[c4d.CAMERAOBJECT_SHUTTER_SPEED_PRESET] = c4d.CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM
obj[c4d.CAMERAOBJECT_SHUTTER_ANGLE] = 0.1
obj[c4d.CAMERAOBJECT_SHUTTER_OFFSET] = 0.1
obj[c4d.CAMERAOBJECT_SHUTTER_EFFICIENCY] = 0.1
obj[c4d.CAMERAOBJECT_LENS_DISTORTION_QUAD] = 0.1
obj[c4d.CAMERAOBJECT_LENS_DISTORTION_CUBIC] = 0.1
obj[c4d.CAMERAOBJECT_VIGNETTING_INTENSITY] = 0.1
obj[c4d.CAMERAOBJECT_VIGNETTING_OFFSET] = 0.1
obj[c4d.CAMERAOBJECT_CHROMATIC_ABERRATION_STRENGTH] = 0.1
obj[c4d.CAMERAOBJECT_APERTURE_SHAPE] = True
obj[c4d.CAMERAOBJECT_APERTURE_BLADES] = 1
obj[c4d.CAMERAOBJECT_APERTURE_ANGLE] = 0.1
obj[c4d.CAMERAOBJECT_APERTURE_BIAS] = 0.1
obj[c4d.CAMERAOBJECT_APERTURE_ANISOTROPY] = 0.1
obj[c4d.CAMERAOBJECT_NEAR_CLIPPING_ENABLE] = True
obj[c4d.CAMERAOBJECT_NEAR_CLIPPING] = 0.1
obj[c4d.CAMERAOBJECT_FAR_CLIPPING_ENABLE] = True
obj[c4d.CAMERAOBJECT_FAR_CLIPPING] = 0.1
obj[c4d.CAMERAOBJECT_PROJECTIONRENDER] = "c:\\SomeFile.txt"
obj[c4d.CAMERAOBJECT_SHOW] = True
obj[c4d.CAMERAOBJECT_FRONTBLUR] = True
obj[c4d.CAMERAOBJECT_FRONTSTART] = 0.1
obj[c4d.CAMERAOBJECT_FRONTEND] = 0.1
obj[c4d.CAMERAOBJECT_REARBLUR] = True
obj[c4d.CAMERAOBJECT_REARSTART] = 0.1
obj[c4d.CAMERAOBJECT_REAREND] = 0.1
obj[c4d.CAMERAOBJECT_STEREO_MODE] = c4d.CAMERAOBJECT_STEREO_MODE_MONO
obj[c4d.CAMERAOBJECT_STEREO_EYESEPARATION] = 0.1
obj[c4d.CAMERAOBJECT_STEREO_PLACEMENT] = c4d.CAMERAOBJECT_STEREO_PLACEMENT_PARALLEL
obj[c4d.CAMERAOBJECT_STEREO_SHOW_ALL] = True
obj[c4d.CAMERAOBJECT_STEREO_ZERO_PARALLAX] = 0.1
obj[c4d.CAMERAOBJECT_STEREO_AUTO_PLANES] = c4d.CAMERAOBJECT_STEREO_AUTO_PLANES_MANUAL
obj[c4d.CAMERAOBJECT_STEREO_NEAR_PLANE] = 0.1
obj[c4d.CAMERAOBJECT_STEREO_FAR_PLANE] = 0.1
obj[c4d.CAMERAOBJECT_STEREO_SHOW_FLOATING_FRAME] = True
obj[c4d.CAMERAOBJECT_SPC_STEREO_MODE] = c4d.CAMERAOBJECT_SPC_STEREO_MONO
obj[c4d.CAMERAOBJECT_SPC_STEREO_LAYOUT] = c4d.SPC_LAYOUT_ABOVE_UNDER
obj[c4d.CAMERAOBJECT_SPC_STEREO_EYESEPARATION] = 0.1
obj[c4d.CAMERAOBJECT_SPC_STEREO_NECK_DIST] = 0.1
obj[c4d.CAMERAOBJECT_SPC_STEREO_FOCAL] = 0.1
obj[c4d.CAMERAOBJECT_SPC_STEREO_N_POLE_MODE] = c4d.CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE
obj[c4d.CAMERAOBJECT_SPC_STEREO_N_POLE_ANGLE] = 0.1
obj[c4d.CAMERAOBJECT_SPC_STEREO_N_POLE_EXP] = 0.1
obj[c4d.CAMERAOBJECT_SPC_STEREO_S_POLE_MODE] = c4d.CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE
obj[c4d.CAMERAOBJECT_SPC_STEREO_S_POLE_ANGLE] = 0.1
obj[c4d.CAMERAOBJECT_SPC_STEREO_S_POLE_EXP] = 0.1
obj[c4d.CAMERAOBJECT_LAYOUTHELP_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_ENABLE] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_CELLS] = 1
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_MIRROR] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE] = c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE_1
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MIRROR] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_FLIP] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_I] = 1
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_TOP] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_RIGHT] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_BOTTOM] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_LEFT] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_H] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_V] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_FLIP] = True
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_V] = c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_TOP
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_H] = c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_LEFT
obj[c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_SCALE] = 0.1
obj[c4d.CAMERAOBJECT_SPC_ENABLE] = True
obj[c4d.CAMERAOBJECT_SPC_GIZMO] = c4d.SPC_GIZMO_LATLONG
obj[c4d.CAMERAOBJECT_SPC_PROJECTION_MAPPING] = c4d.SPC_MAPPING_LATLONG
obj[c4d.CAMERAOBJECT_SPC_FIT_FRAME] = True
obj[c4d.CAMERAOBJECT_SPC_FULL_RANGE_ENABLE] = True
obj[c4d.CAMERAOBJECT_SPC_LONG_MIN] = 0.1
obj[c4d.CAMERAOBJECT_SPC_LONG_MAX] = 0.1
obj[c4d.CAMERAOBJECT_SPC_LAT_MIN] = 0.1
obj[c4d.CAMERAOBJECT_SPC_LAT_MAX] = 0.1
obj[c4d.CAMERAOBJECT_SPC_DOME_LAT] = 0.1
#Second way, using the base container.
bc = obj.GetDataInstance()
bc.SetInt32(c4d.CAMERA_PROJECTION,c4d.Pperspective)
bc.SetFloat(c4d.CAMERA_FOCUS,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_FOCUS_PRESET,c4d.CAMERAOBJECT_FOCUS_PRESET_CUSTOM)
bc.SetFloat(c4d.CAMERAOBJECT_APERTURE,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_APERTURE_PRESET,c4d.CAMERAOBJECT_APERTURE_PRESET_CUSTOM)
bc.SetFloat(c4d.CAMERAOBJECT_FOV,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_FOV_VERTICAL,0.1)
bc.SetFloat(c4d.CAMERA_ZOOM,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_FILM_OFFSET_X,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_FILM_OFFSET_Y,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_TARGETDISTANCE,0.1)
bc.SetBool(c4d.CAMERAOBJECT_USETARGETOBJECT,True)
bc.SetFloat(c4d.CAMERAOBJECT_WHITE_BALANCE_TEMPERATURE,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_WHITE_BALANCE,c4d.CAMERAOBJECT_WHITE_BALANCE_CUSTOM)
bc.SetBool(c4d.CAMERAOBJECT_WHITE_BALANCE_LIGHTS_ONLY,True)
bc.SetBool(c4d.CAMERAOBJECT_AFX,True)
bc.SetBool(c4d.CAMERAOBJECT_MOVIECAMERA,True)
bc.SetFloat(c4d.CAMERAOBJECT_FNUMBER_VALUE,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_FNUMBER,c4d.CAMERAOBJECT_FNUMBER_CUSTOM)
bc.SetBool(c4d.CAMERAOBJECT_EXPOSURE,True)
bc.SetFloat(c4d.CAMERAOBJECT_ISO_VALUE,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_ISO_PRESET,c4d.CAMERAOBJECT_ISO_PRESET_CUSTOM)
bc.SetFloat(c4d.CAMERAOBJECT_GAIN_VALUE,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SHUTTER_SPEED_VALUE,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_SHUTTER_SPEED_PRESET,c4d.CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM)
bc.SetFloat(c4d.CAMERAOBJECT_SHUTTER_ANGLE,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SHUTTER_OFFSET,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SHUTTER_EFFICIENCY,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_LENS_DISTORTION_QUAD,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_LENS_DISTORTION_CUBIC,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_VIGNETTING_INTENSITY,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_VIGNETTING_OFFSET,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_CHROMATIC_ABERRATION_STRENGTH,0.1)
bc.SetBool(c4d.CAMERAOBJECT_APERTURE_SHAPE,True)
bc.SetInt32(c4d.CAMERAOBJECT_APERTURE_BLADES,1)
bc.SetFloat(c4d.CAMERAOBJECT_APERTURE_ANGLE,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_APERTURE_BIAS,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_APERTURE_ANISOTROPY,0.1)
bc.SetBool(c4d.CAMERAOBJECT_NEAR_CLIPPING_ENABLE,True)
bc.SetFloat(c4d.CAMERAOBJECT_NEAR_CLIPPING,0.1)
bc.SetBool(c4d.CAMERAOBJECT_FAR_CLIPPING_ENABLE,True)
bc.SetFloat(c4d.CAMERAOBJECT_FAR_CLIPPING,0.1)
bc.SetFileName(c4d.CAMERAOBJECT_PROJECTIONRENDER,"c:\\SomeFile.txt")
bc.SetBool(c4d.CAMERAOBJECT_SHOW,True)
bc.SetBool(c4d.CAMERAOBJECT_FRONTBLUR,True)
bc.SetFloat(c4d.CAMERAOBJECT_FRONTSTART,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_FRONTEND,0.1)
bc.SetBool(c4d.CAMERAOBJECT_REARBLUR,True)
bc.SetFloat(c4d.CAMERAOBJECT_REARSTART,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_REAREND,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_STEREO_MODE,c4d.CAMERAOBJECT_STEREO_MODE_MONO)
bc.SetFloat(c4d.CAMERAOBJECT_STEREO_EYESEPARATION,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_STEREO_PLACEMENT,c4d.CAMERAOBJECT_STEREO_PLACEMENT_PARALLEL)
bc.SetBool(c4d.CAMERAOBJECT_STEREO_SHOW_ALL,True)
bc.SetFloat(c4d.CAMERAOBJECT_STEREO_ZERO_PARALLAX,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_STEREO_AUTO_PLANES,c4d.CAMERAOBJECT_STEREO_AUTO_PLANES_MANUAL)
bc.SetFloat(c4d.CAMERAOBJECT_STEREO_NEAR_PLANE,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_STEREO_FAR_PLANE,0.1)
bc.SetBool(c4d.CAMERAOBJECT_STEREO_SHOW_FLOATING_FRAME,True)
bc.SetInt32(c4d.CAMERAOBJECT_SPC_STEREO_MODE,c4d.CAMERAOBJECT_SPC_STEREO_MONO)
bc.SetInt32(c4d.CAMERAOBJECT_SPC_STEREO_LAYOUT,c4d.SPC_LAYOUT_ABOVE_UNDER)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_EYESEPARATION,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_NECK_DIST,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_FOCAL,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_SPC_STEREO_N_POLE_MODE,c4d.CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_N_POLE_ANGLE,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_N_POLE_EXP,0.1)
bc.SetInt32(c4d.CAMERAOBJECT_SPC_STEREO_S_POLE_MODE,c4d.CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_S_POLE_ANGLE,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_STEREO_S_POLE_EXP,0.1)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_ENABLE,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_ENABLE,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_ENABLE,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_ENABLE,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_ENABLE,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ENABLE,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_ENABLE,True)
bc.SetInt32(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_CELLS,1)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_MIRROR,True)
bc.SetInt32(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE,c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE_1)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MIRROR,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_FLIP,True)
bc.SetInt32(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_I,1)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_TOP,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_RIGHT,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_BOTTOM,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_LEFT,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_H,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_V,True)
bc.SetBool(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_FLIP,True)
bc.SetInt32(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_V,c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_TOP)
bc.SetInt32(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_H,c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_LEFT)
bc.SetFloat(c4d.CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_SCALE,0.1)
bc.SetBool(c4d.CAMERAOBJECT_SPC_ENABLE,True)
bc.SetInt32(c4d.CAMERAOBJECT_SPC_GIZMO,c4d.SPC_GIZMO_LATLONG)
bc.SetInt32(c4d.CAMERAOBJECT_SPC_PROJECTION_MAPPING,c4d.SPC_MAPPING_LATLONG)
bc.SetBool(c4d.CAMERAOBJECT_SPC_FIT_FRAME,True)
bc.SetBool(c4d.CAMERAOBJECT_SPC_FULL_RANGE_ENABLE,True)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_LONG_MIN,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_LONG_MAX,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_LAT_MIN,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_LAT_MAX,0.1)
bc.SetFloat(c4d.CAMERAOBJECT_SPC_DOME_LAT,0.1)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../c4dplugin/description/ocamera.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseObject *pObject = BaseObject::Alloc(Ocamera);
pDoc->InsertObject(pObject);
pDoc->StartUndo();
pDoc->AddUndo(UNDO_NEW,pObject);
pDoc->EndUndo();
EventAdd(EVENT_FORCEREDRAW);
//You can set parameters two different ways.
//First way
//Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead.
DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET;
pObject->SetParameter(DescID(CAMERA_PROJECTION),GeData(Pperspective),flags);
pObject->SetParameter(DescID(CAMERA_FOCUS),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FOCUS_PRESET),GeData(CAMERAOBJECT_FOCUS_PRESET_CUSTOM),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE_PRESET),GeData(CAMERAOBJECT_APERTURE_PRESET_CUSTOM),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FOV),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FOV_VERTICAL),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERA_ZOOM),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FILM_OFFSET_X),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FILM_OFFSET_Y),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_TARGETDISTANCE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_USETARGETOBJECT),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_WHITE_BALANCE_TEMPERATURE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_WHITE_BALANCE),GeData(CAMERAOBJECT_WHITE_BALANCE_CUSTOM),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_WHITE_BALANCE_LIGHTS_ONLY),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_AFX),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_MOVIECAMERA),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FNUMBER_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FNUMBER),GeData(CAMERAOBJECT_FNUMBER_CUSTOM),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_EXPOSURE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_ISO_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_ISO_PRESET),GeData(CAMERAOBJECT_ISO_PRESET_CUSTOM),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_GAIN_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SHUTTER_SPEED_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SHUTTER_SPEED_PRESET),GeData(CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SHUTTER_ANGLE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SHUTTER_OFFSET),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SHUTTER_EFFICIENCY),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LENS_DISTORTION_QUAD),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LENS_DISTORTION_CUBIC),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_VIGNETTING_INTENSITY),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_VIGNETTING_OFFSET),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_CHROMATIC_ABERRATION_STRENGTH),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE_SHAPE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE_BLADES),GeData(1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE_ANGLE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE_BIAS),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_APERTURE_ANISOTROPY),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_NEAR_CLIPPING_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_NEAR_CLIPPING),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FAR_CLIPPING_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FAR_CLIPPING),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_PROJECTIONRENDER),GeData(Filename("c:\\SomeFile.txt"),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SHOW),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FRONTBLUR),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FRONTSTART),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_FRONTEND),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_REARBLUR),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_REARSTART),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_REAREND),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_MODE),GeData(CAMERAOBJECT_STEREO_MODE_MONO),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_EYESEPARATION),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_PLACEMENT),GeData(CAMERAOBJECT_STEREO_PLACEMENT_PARALLEL),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_SHOW_ALL),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_ZERO_PARALLAX),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_AUTO_PLANES),GeData(CAMERAOBJECT_STEREO_AUTO_PLANES_MANUAL),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_NEAR_PLANE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_FAR_PLANE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_STEREO_SHOW_FLOATING_FRAME),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_MODE),GeData(CAMERAOBJECT_SPC_STEREO_MONO),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_LAYOUT),GeData(SPC_LAYOUT_ABOVE_UNDER),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_EYESEPARATION),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_NECK_DIST),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_FOCAL),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_N_POLE_MODE),GeData(CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_N_POLE_ANGLE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_N_POLE_EXP),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_S_POLE_MODE),GeData(CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_S_POLE_ANGLE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_STEREO_S_POLE_EXP),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_CELLS),GeData(1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_MIRROR),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE),GeData(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE_1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MIRROR),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_FLIP),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_I),GeData(1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_TOP),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_RIGHT),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_BOTTOM),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_LEFT),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_H),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_V),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_FLIP),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_V),GeData(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_TOP),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_H),GeData(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_LEFT),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_SCALE),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_GIZMO),GeData(SPC_GIZMO_LATLONG),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_PROJECTION_MAPPING),GeData(SPC_MAPPING_LATLONG),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_FIT_FRAME),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_FULL_RANGE_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_LONG_MIN),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_LONG_MAX),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_LAT_MIN),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_LAT_MAX),GeData(0.1),flags);
pObject->SetParameter(DescID(CAMERAOBJECT_SPC_DOME_LAT),GeData(0.1),flags);
pObject->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pObject->GetDataInstance();
bc->SetInt32(CAMERA_PROJECTION,Pperspective);
bc->SetFloat(CAMERA_FOCUS,0.1);
bc->SetInt32(CAMERAOBJECT_FOCUS_PRESET,CAMERAOBJECT_FOCUS_PRESET_CUSTOM);
bc->SetFloat(CAMERAOBJECT_APERTURE,0.1);
bc->SetInt32(CAMERAOBJECT_APERTURE_PRESET,CAMERAOBJECT_APERTURE_PRESET_CUSTOM);
bc->SetFloat(CAMERAOBJECT_FOV,0.1);
bc->SetFloat(CAMERAOBJECT_FOV_VERTICAL,0.1);
bc->SetFloat(CAMERA_ZOOM,0.1);
bc->SetFloat(CAMERAOBJECT_FILM_OFFSET_X,0.1);
bc->SetFloat(CAMERAOBJECT_FILM_OFFSET_Y,0.1);
bc->SetFloat(CAMERAOBJECT_TARGETDISTANCE,0.1);
bc->SetBool(CAMERAOBJECT_USETARGETOBJECT,true);
bc->SetFloat(CAMERAOBJECT_WHITE_BALANCE_TEMPERATURE,0.1);
bc->SetInt32(CAMERAOBJECT_WHITE_BALANCE,CAMERAOBJECT_WHITE_BALANCE_CUSTOM);
bc->SetBool(CAMERAOBJECT_WHITE_BALANCE_LIGHTS_ONLY,true);
bc->SetBool(CAMERAOBJECT_AFX,true);
bc->SetBool(CAMERAOBJECT_MOVIECAMERA,true);
bc->SetFloat(CAMERAOBJECT_FNUMBER_VALUE,0.1);
bc->SetInt32(CAMERAOBJECT_FNUMBER,CAMERAOBJECT_FNUMBER_CUSTOM);
bc->SetBool(CAMERAOBJECT_EXPOSURE,true);
bc->SetFloat(CAMERAOBJECT_ISO_VALUE,0.1);
bc->SetInt32(CAMERAOBJECT_ISO_PRESET,CAMERAOBJECT_ISO_PRESET_CUSTOM);
bc->SetFloat(CAMERAOBJECT_GAIN_VALUE,0.1);
bc->SetFloat(CAMERAOBJECT_SHUTTER_SPEED_VALUE,0.1);
bc->SetInt32(CAMERAOBJECT_SHUTTER_SPEED_PRESET,CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM);
bc->SetFloat(CAMERAOBJECT_SHUTTER_ANGLE,0.1);
bc->SetFloat(CAMERAOBJECT_SHUTTER_OFFSET,0.1);
bc->SetFloat(CAMERAOBJECT_SHUTTER_EFFICIENCY,0.1);
bc->SetFloat(CAMERAOBJECT_LENS_DISTORTION_QUAD,0.1);
bc->SetFloat(CAMERAOBJECT_LENS_DISTORTION_CUBIC,0.1);
bc->SetFloat(CAMERAOBJECT_VIGNETTING_INTENSITY,0.1);
bc->SetFloat(CAMERAOBJECT_VIGNETTING_OFFSET,0.1);
bc->SetFloat(CAMERAOBJECT_CHROMATIC_ABERRATION_STRENGTH,0.1);
bc->SetBool(CAMERAOBJECT_APERTURE_SHAPE,true);
bc->SetInt32(CAMERAOBJECT_APERTURE_BLADES,1);
bc->SetFloat(CAMERAOBJECT_APERTURE_ANGLE,0.1);
bc->SetFloat(CAMERAOBJECT_APERTURE_BIAS,0.1);
bc->SetFloat(CAMERAOBJECT_APERTURE_ANISOTROPY,0.1);
bc->SetBool(CAMERAOBJECT_NEAR_CLIPPING_ENABLE,true);
bc->SetFloat(CAMERAOBJECT_NEAR_CLIPPING,0.1);
bc->SetBool(CAMERAOBJECT_FAR_CLIPPING_ENABLE,true);
bc->SetFloat(CAMERAOBJECT_FAR_CLIPPING,0.1);
bc->SetFileName(CAMERAOBJECT_PROJECTIONRENDER,"c:\\SomeFile.txt");
bc->SetBool(CAMERAOBJECT_SHOW,true);
bc->SetBool(CAMERAOBJECT_FRONTBLUR,true);
bc->SetFloat(CAMERAOBJECT_FRONTSTART,0.1);
bc->SetFloat(CAMERAOBJECT_FRONTEND,0.1);
bc->SetBool(CAMERAOBJECT_REARBLUR,true);
bc->SetFloat(CAMERAOBJECT_REARSTART,0.1);
bc->SetFloat(CAMERAOBJECT_REAREND,0.1);
bc->SetInt32(CAMERAOBJECT_STEREO_MODE,CAMERAOBJECT_STEREO_MODE_MONO);
bc->SetFloat(CAMERAOBJECT_STEREO_EYESEPARATION,0.1);
bc->SetInt32(CAMERAOBJECT_STEREO_PLACEMENT,CAMERAOBJECT_STEREO_PLACEMENT_PARALLEL);
bc->SetBool(CAMERAOBJECT_STEREO_SHOW_ALL,true);
bc->SetFloat(CAMERAOBJECT_STEREO_ZERO_PARALLAX,0.1);
bc->SetInt32(CAMERAOBJECT_STEREO_AUTO_PLANES,CAMERAOBJECT_STEREO_AUTO_PLANES_MANUAL);
bc->SetFloat(CAMERAOBJECT_STEREO_NEAR_PLANE,0.1);
bc->SetFloat(CAMERAOBJECT_STEREO_FAR_PLANE,0.1);
bc->SetBool(CAMERAOBJECT_STEREO_SHOW_FLOATING_FRAME,true);
bc->SetInt32(CAMERAOBJECT_SPC_STEREO_MODE,CAMERAOBJECT_SPC_STEREO_MONO);
bc->SetInt32(CAMERAOBJECT_SPC_STEREO_LAYOUT,SPC_LAYOUT_ABOVE_UNDER);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_EYESEPARATION,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_NECK_DIST,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_FOCAL,0.1);
bc->SetInt32(CAMERAOBJECT_SPC_STEREO_N_POLE_MODE,CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_N_POLE_ANGLE,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_N_POLE_EXP,0.1);
bc->SetInt32(CAMERAOBJECT_SPC_STEREO_S_POLE_MODE,CAMERAOBJECT_SPC_STEREO_SMOOTH_NONE);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_S_POLE_ANGLE,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_STEREO_S_POLE_EXP,0.1);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_ENABLE,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_ENABLE,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_ENABLE,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_ENABLE,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_ENABLE,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ENABLE,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_ENABLE,true);
bc->SetInt32(CAMERAOBJECT_LAYOUTHELP_DRAW_GRID_CELLS,1);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_DIAGONAL_MIRROR,true);
bc->SetInt32(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE,CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MODE_1);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_MIRROR,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_TRIANGLES_FLIP,true);
bc->SetInt32(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_I,1);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_TOP,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_RIGHT,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_BOTTOM,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSECTION_LEFT,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_H,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_MIRROR_V,true);
bc->SetBool(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_FLIP,true);
bc->SetInt32(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_V,CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_TOP);
bc->SetInt32(CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_H,CAMERAOBJECT_LAYOUTHELP_DRAW_GOLDENSPIRAL_ALIGN_LEFT);
bc->SetFloat(CAMERAOBJECT_LAYOUTHELP_DRAW_CROSSHAIR_SCALE,0.1);
bc->SetBool(CAMERAOBJECT_SPC_ENABLE,true);
bc->SetInt32(CAMERAOBJECT_SPC_GIZMO,SPC_GIZMO_LATLONG);
bc->SetInt32(CAMERAOBJECT_SPC_PROJECTION_MAPPING,SPC_MAPPING_LATLONG);
bc->SetBool(CAMERAOBJECT_SPC_FIT_FRAME,true);
bc->SetBool(CAMERAOBJECT_SPC_FULL_RANGE_ENABLE,true);
bc->SetFloat(CAMERAOBJECT_SPC_LONG_MIN,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_LONG_MAX,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_LAT_MIN,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_LAT_MAX,0.1);
bc->SetFloat(CAMERAOBJECT_SPC_DOME_LAT,0.1);
pObject->Message(MSG_UPDATE);
}
Buttons
This node has buttons. Buttons can manually be executed by calling the following code
Python
c4d.CallButton(obj,c4d.CAMERAOBJECT_TARGETDISTANCE_PICK)
C++
DescriptionCommand dc;
dc.id = DescID(CAMERAOBJECT_TARGETDISTANCE_PICK);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);