Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.
Description Tmotioncam
IDs and information for Tmotioncam
Tmotioncam
Attributes
- ENGLISH NAME : MotionCamera
- NAME : Tmotioncam
- INCLUDE : Texpression
- PATH : motioncam/description/tmotioncam.res
- PLUGIN : motioncam
- MAXON online help (may not exist): TMOTIONCAM
Elements
ID | UI Name | Type | Parameters | Cycle | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TMOTIONCAM_VIS_CAM_ENABLED | Vis:UseCustomCameraColor | BOOL |
|
|||||||||||||||
TMOTIONCAM_VIS_CAM_COL | Vis:CameraColor | COLOR |
|
|||||||||||||||
TMOTIONCAM_VIS_RIG_ENABLED | Vis:DrawRig | BOOL |
|
|||||||||||||||
TMOTIONCAM_VIS_RIG_MODE | Vis:RigMode | LONG |
|
|||||||||||||||
TMOTIONCAM_VIS_RIG_COL | Vis:RigColor | COLOR |
|
|||||||||||||||
TMOTIONCAM_VIS_TARGET_ENABLED | Vis:DrawMarker | BOOL |
|
|||||||||||||||
TMOTIONCAM_VIS_TARGET_RADIUS | Vis:MarkerRadius | REAL |
|
|
||||||||||||||
TMOTIONCAM_VIS_TARGET_DRAWDISTTEXT | Vis:DrawTargetDistance | BOOL |
|
|||||||||||||||
TMOTIONCAM_VIS_TARGET_DRAWABERRATION | Vis:DrawAberration | BOOL |
|
|||||||||||||||
TMOTIONCAM_VIS_TARGET_DRAWSINGLETARGETS | Vis:DrawSingleTargets | BOOL |
|
|||||||||||||||
TMOTIONCAM_VIS_TARGET_COLOR | Vis:TargetColor | COLOR |
|
|||||||||||||||
TMOTIONCAM_EXPORT_TARGETPOS_LINK | TargetPos:Link | LINK |
|
|||||||||||||||
TMOTIONCAM_EXPORT_TARGETPOS_VECTOR | TargetPos:Vector | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_EXPORT_FOOTPOS_LINK | Foot:Link | LINK |
|
|||||||||||||||
TMOTIONCAM_EXPORT_FOOTPOS_VECTOR | Foot:PosVector | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_EXPORT_HEADPOS_LINK | Head:Link | LINK |
|
|||||||||||||||
TMOTIONCAM_EXPORT_HEADPOS_VECTOR | Head:PosVector | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_EXPORT_SPEED | Speed(Units/sec) | REAL |
|
|
||||||||||||||
TMOTIONCAM_RIG_HEIGHT | Rig:Height | REAL | UNIT |
|
||||||||||||||
TMOTIONCAM_RIG_PARALLAX | Rig:Parallax | VECTOR | UNIT |
|
||||||||||||||
TMOTIONCAM_ROT_MANUAL_HEAD | ManualHeadRotation | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_ROT_MANUAL_CAM | ManualCameraRotation | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_BASE_LINK | Base:Link | LINK |
|
|||||||||||||||
TMOTIONCAM_BASE_INHERITPARAMS | Base:InheritCameraParameters | BOOL |
|
|||||||||||||||
TMOTIONCAM_BASE_OVERRIDE_RIGHEIGHT | Base:OverrideRigDimensions | BOOL |
|
|||||||||||||||
TMOTIONCAM_SPLINE_ENABLED | Splines:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_SPLINE_TANGENTIAL | Splines:Tangential | BOOL |
|
|||||||||||||||
TMOTIONCAM_SPLINE_A | Splines:PathSplineA | LINK |
|
|||||||||||||||
TMOTIONCAM_SPLINE_A_RAIL | Splines:RailSplineA | LINK |
|
|||||||||||||||
TMOTIONCAM_SPLINE_B | Splines:PathSplineB | LINK |
|
|||||||||||||||
TMOTIONCAM_SPLINE_B_RAIL | Splines:RailSplineB | LINK |
|
|||||||||||||||
TMOTIONCAM_SPLINE_POS_A | Splines:CamPosA | REAL |
|
|
||||||||||||||
TMOTIONCAM_SPLINE_POS_A_SPLINE | Splines:CamPosACurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_A_ENABLED | Splines:Auto.AnimAEnabled | BOOL | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_A_START | Splines:Auto.AnimAStart | BASETIME | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_A_END | Splines:Auto.AnimAEnd | BASETIME | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_POS_B | Splines:CamPosB | REAL |
|
|
||||||||||||||
TMOTIONCAM_SPLINE_POS_B_SPLINE | Splines:CamPosBCurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_B_ENABLED | Splines:Auto.AnimBEnabled | BOOL | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_B_START | Splines:Auto.AnimBStart | BASETIME | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_B_END | Splines:Auto.AnimBEnd | BASETIME | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_POS_BLEND | Splines:BlendA<->B | REAL |
|
|
||||||||||||||
TMOTIONCAM_SPLINE_POS_BLEND_SPLINE | Splines:CamPosBlendCurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_BLEND_ENABLED | Splines:Auto.AnimBlendEnabled | BOOL | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_BLEND_START | Splines:Auto.AnimBlendStart | BASETIME | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_AUTO_BLEND_END | Splines:Auto.AnimBlendEnd | BASETIME | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_SPLINE_INTENSITY | Splines:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_ENABLED | Targets:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_TARGET_COMPENSATE_PARALLAX | CompensateAberration | BOOL |
|
|||||||||||||||
TMOTIONCAM_TARGET_A1 | Targets:TargetA1 | LINK |
|
|||||||||||||||
TMOTIONCAM_TARGET_SPLINE_A1_POS | Targets:TargetA1Pos | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_A2 | Targets:TargetA2 | LINK |
|
|||||||||||||||
TMOTIONCAM_TARGET_SPLINE_A2_POS | Targets:TargetA2Pos | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_B1 | Targets:TargetB1 | LINK |
|
|||||||||||||||
TMOTIONCAM_TARGET_SPLINE_B1_POS | Targets:TargetB1Pos | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_B2 | Targets:TargetB2 | LINK |
|
|||||||||||||||
TMOTIONCAM_TARGET_SPLINE_B2_POS | Targets:TargetB2Pos | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_UPVECTOR | Targets:UpVector | LINK |
|
|||||||||||||||
TMOTIONCAM_TARGET_SPLINE_UPVECTOR_POS | Targets:TargetUpVectorPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_BLEND_A | Targets:TargetPosA1<->A2 | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_BLEND_A_SPLINE | Targets:BlendACurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_TARGET_BLEND_B | Targets:TargetPosB1<->B2 | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_BLEND_B_SPLINE | Targets:BlendBCurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_TARGET_BLEND_AB | Targets:TargetPosA<->B | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_BLEND_AB_SPLINE | Targets:BlendABCurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_TARGET_INTENSITY | Targets:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_TARGET_INTENSITY_SPLINE | Targets:IntensityCurve | SPLINE | PARENTCOLLAPSE |
|
||||||||||||||
TMOTIONCAM_FOLLOW_ENABLED | Chase:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_FOLLOW_LINK | Chase:Link | LINK |
|
|||||||||||||||
TMOTIONCAM_FOLLOW_MAXDISTANCE | Chase:Max.Distance | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOLLOW_MINDISTANCE | Chase:Min.Distance | REAL |
|
|
||||||||||||||
TMOTIONCAM_AUTOBANKING_ENABLED | Auto.Banking:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_AUTOBANKING_INTENSITY | Auto.Banking:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_AUTOBANKING_DAMPEN | Auto.Banking:Dampen | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOOT_DYN_ENABLED | FootDyn:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_FOOT_DYN_MODE | FootDyn:Mode | LONG |
|
|||||||||||||||
TMOTIONCAM_FOOT_DYN_DAMP_POS | FootDyn:DampPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOOT_DYN_DAMP_ROT | FootDyn:DampRot | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOOT_DYN_INERTIA_POS | FootDyn:InertiaPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOOT_DYN_INERTIA_ROT | FootDyn:InertiaRot | REAL |
|
|
||||||||||||||
TMOTIONCAM_HEAD_DYN_ENABLED | HeadDyn:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_HEAD_DYN_MODE | HeadDyn:Mode | LONG |
|
|||||||||||||||
TMOTIONCAM_HEAD_DYN_DAMP_POS | HeadDyn:DampPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_HEAD_DYN_DAMP_ROT | HeadDyn:DampRot | REAL |
|
|
||||||||||||||
TMOTIONCAM_HEAD_DYN_INERTIA_POS | HeadDyn:InertiaPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_HEAD_DYN_INERTIA_ROT | HeadDyn:InertiaRot | REAL |
|
|
||||||||||||||
TMOTIONCAM_CAM_DYN_ENABLED | HandsDyn:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_CAM_DYN_MODE | HandsDyn:Mode | LONG |
|
|||||||||||||||
TMOTIONCAM_CAM_DYN_DAMP_POS | HandsDyn:DampPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_CAM_DYN_DAMP_ROT | HandsDyn:DampRot | REAL |
|
|
||||||||||||||
TMOTIONCAM_CAM_DYN_INERTIA_POS | HandsDyn:InertiaPos | REAL |
|
|
||||||||||||||
TMOTIONCAM_CAM_DYN_INERTIA_ROT | HandsDyn:InertiaRot | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_DYN_ENABLED | FocusDyn:Enabled | BOOL |
|
|||||||||||||||
TMOTIONCAM_FOCUS_DYN_MODE | FocusDyn:Mode | LONG |
|
|||||||||||||||
TMOTIONCAM_FOCUS_DYN_DAMP | FocusDyn:Damp | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_DYN_INERTIA | FocusDyn:Inertia | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_PRESET | Preset | LONG |
|
|||||||||||||||
TMOTIONCAM_NMOTION_FOOT_INTENSITY | Footsteps:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_FOOT_SCALE | Footsteps:Scale | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_FOOT_FREQ | Footsteps:Frequency | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_HEAD_ROT_INTENSITY | Motion:HeadRot:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_HEAD_ROT_MAX | Motion:HeadRot:Max | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_HEAD_ROT_FREQ | Motion:HeadRot:Frequency | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_HEAD_ROT_OCT | Motion:HeadRot:Octaves | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_HEAD_ROT_DESYNC | Motion:HeadRot:DeSync | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_HEAD_ROT_OFFSET | Motion:HeadRot:Offset | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_ROT_INTENSITY | Motion:CamRot:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_ROT_MAX | Motion:CamRot:Max | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_ROT_FREQ | Motion:CamRot:Frequency | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_ROT_OCT | Motion:CamRot:Octaves | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_ROT_DESYNC | Motion:CamRot:DeSync | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_ROT_OFFSET | Motion:CamRot:Offset | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_POS_INTENSITY | Motion:CamPos:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_POS_MAX | Motion:CamPos:Max | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_POS_FREQ | Motion:CamPos:Frequency | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_POS_OCT | Motion:CamPos:Octaves | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_POS_DESYNC | Motion:CamPos:DeSync | REAL |
|
|
||||||||||||||
TMOTIONCAM_NMOTION_CAM_POS_OFFSET | Motion:CamPos:Offset | VECTOR |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_ENABLED | Focus:EnableFocusControl | BOOL |
|
|||||||||||||||
TMOTIONCAM_FOCUS_FOCALLENGTH | Focus:FocalLength | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_APERTURE | Focus:SensorSize | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_AUTO_ENABLED | Focus:EnableAutoFocus | BOOL |
|
|||||||||||||||
TMOTIONCAM_FOCUS_DISTANCE_DIST | Focus:TargetDistance | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_DISTANCE_OFFSET | Focus:Offset | REAL | UNIT |
|
||||||||||||||
TMOTIONCAM_FOCUS_VERTIGO_INTENSITY | DollyZoom:Intensity | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_DEPTH_ENABLED | Focus:EnableDepthControl | BOOL |
|
|||||||||||||||
TMOTIONCAM_FOCUS_DEPTH_MODE | Focus:DepthMode | LONG |
|
|||||||||||||||
TMOTIONCAM_FOCUS_DEPTH_AREA | Focus:FocusArea | REAL |
|
|
||||||||||||||
TMOTIONCAM_FOCUS_DEPTH_SOFT | Focus:BlurArea | REAL |
|
|
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.Osphere) tag = obj.MakeTag(c4d.Tmotioncam) doc.InsertObject(obj) c4d.EventAdd(c4d.EVENT_FORCEREDRAW) #You can set parameters two different ways. #First way tag[c4d.TMOTIONCAM_VIS_CAM_ENABLED] = True tag[c4d.TMOTIONCAM_VIS_RIG_ENABLED] = True tag[c4d.TMOTIONCAM_VIS_RIG_MODE] = c4d.TMOTIONCAM_VIS_RIG_MODE_SIMPLE tag[c4d.TMOTIONCAM_VIS_TARGET_ENABLED] = True tag[c4d.TMOTIONCAM_VIS_TARGET_RADIUS] = 0.1 tag[c4d.TMOTIONCAM_VIS_TARGET_DRAWDISTTEXT] = True tag[c4d.TMOTIONCAM_VIS_TARGET_DRAWABERRATION] = True tag[c4d.TMOTIONCAM_VIS_TARGET_DRAWSINGLETARGETS] = True tag[c4d.TMOTIONCAM_EXPORT_TARGETPOS_VECTOR] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_EXPORT_FOOTPOS_VECTOR] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_EXPORT_HEADPOS_VECTOR] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_EXPORT_SPEED] = 0.1 tag[c4d.TMOTIONCAM_RIG_HEIGHT] = 0.1 tag[c4d.TMOTIONCAM_RIG_PARALLAX] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_ROT_MANUAL_HEAD] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_ROT_MANUAL_CAM] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_BASE_INHERITPARAMS] = True tag[c4d.TMOTIONCAM_BASE_OVERRIDE_RIGHEIGHT] = True tag[c4d.TMOTIONCAM_SPLINE_ENABLED] = True tag[c4d.TMOTIONCAM_SPLINE_TANGENTIAL] = True tag[c4d.TMOTIONCAM_SPLINE_POS_A] = 0.1 tag[c4d.TMOTIONCAM_SPLINE_AUTO_A_ENABLED] = True tag[c4d.TMOTIONCAM_SPLINE_POS_B] = 0.1 tag[c4d.TMOTIONCAM_SPLINE_AUTO_B_ENABLED] = True tag[c4d.TMOTIONCAM_SPLINE_POS_BLEND] = 0.1 tag[c4d.TMOTIONCAM_SPLINE_AUTO_BLEND_ENABLED] = True tag[c4d.TMOTIONCAM_SPLINE_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_TARGET_ENABLED] = True tag[c4d.TMOTIONCAM_TARGET_COMPENSATE_PARALLAX] = True tag[c4d.TMOTIONCAM_TARGET_SPLINE_A1_POS] = 0.1 tag[c4d.TMOTIONCAM_TARGET_SPLINE_A2_POS] = 0.1 tag[c4d.TMOTIONCAM_TARGET_SPLINE_B1_POS] = 0.1 tag[c4d.TMOTIONCAM_TARGET_SPLINE_B2_POS] = 0.1 tag[c4d.TMOTIONCAM_TARGET_SPLINE_UPVECTOR_POS] = 0.1 tag[c4d.TMOTIONCAM_TARGET_BLEND_A] = 0.1 tag[c4d.TMOTIONCAM_TARGET_BLEND_B] = 0.1 tag[c4d.TMOTIONCAM_TARGET_BLEND_AB] = 0.1 tag[c4d.TMOTIONCAM_TARGET_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_FOLLOW_ENABLED] = True tag[c4d.TMOTIONCAM_FOLLOW_MAXDISTANCE] = 0.1 tag[c4d.TMOTIONCAM_FOLLOW_MINDISTANCE] = 0.1 tag[c4d.TMOTIONCAM_AUTOBANKING_ENABLED] = True tag[c4d.TMOTIONCAM_AUTOBANKING_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_AUTOBANKING_DAMPEN] = 0.1 tag[c4d.TMOTIONCAM_FOOT_DYN_ENABLED] = True tag[c4d.TMOTIONCAM_FOOT_DYN_MODE] = c4d.TMOTIONCAM_DYN_MODE_DAMPEN tag[c4d.TMOTIONCAM_FOOT_DYN_DAMP_POS] = 0.1 tag[c4d.TMOTIONCAM_FOOT_DYN_DAMP_ROT] = 0.1 tag[c4d.TMOTIONCAM_FOOT_DYN_INERTIA_POS] = 0.1 tag[c4d.TMOTIONCAM_FOOT_DYN_INERTIA_ROT] = 0.1 tag[c4d.TMOTIONCAM_HEAD_DYN_ENABLED] = True tag[c4d.TMOTIONCAM_HEAD_DYN_MODE] = c4d.TMOTIONCAM_DYN_MODE_DAMPEN tag[c4d.TMOTIONCAM_HEAD_DYN_DAMP_POS] = 0.1 tag[c4d.TMOTIONCAM_HEAD_DYN_DAMP_ROT] = 0.1 tag[c4d.TMOTIONCAM_HEAD_DYN_INERTIA_POS] = 0.1 tag[c4d.TMOTIONCAM_HEAD_DYN_INERTIA_ROT] = 0.1 tag[c4d.TMOTIONCAM_CAM_DYN_ENABLED] = True tag[c4d.TMOTIONCAM_CAM_DYN_MODE] = c4d.TMOTIONCAM_DYN_MODE_DAMPEN tag[c4d.TMOTIONCAM_CAM_DYN_DAMP_POS] = 0.1 tag[c4d.TMOTIONCAM_CAM_DYN_DAMP_ROT] = 0.1 tag[c4d.TMOTIONCAM_CAM_DYN_INERTIA_POS] = 0.1 tag[c4d.TMOTIONCAM_CAM_DYN_INERTIA_ROT] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_DYN_ENABLED] = True tag[c4d.TMOTIONCAM_FOCUS_DYN_MODE] = c4d.TMOTIONCAM_DYN_MODE_DAMPEN tag[c4d.TMOTIONCAM_FOCUS_DYN_DAMP] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_DYN_INERTIA] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_PRESET] = c4d.TMOTIONCAM_NMOTION_PRESET_CUSTOM tag[c4d.TMOTIONCAM_NMOTION_FOOT_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_FOOT_SCALE] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_FOOT_FREQ] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_HEAD_ROT_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_HEAD_ROT_MAX] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_HEAD_ROT_FREQ] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_HEAD_ROT_OCT] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_HEAD_ROT_DESYNC] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_HEAD_ROT_OFFSET] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_CAM_ROT_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_CAM_ROT_MAX] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_CAM_ROT_FREQ] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_CAM_ROT_OCT] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_CAM_ROT_DESYNC] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_CAM_ROT_OFFSET] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_CAM_POS_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_CAM_POS_MAX] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_CAM_POS_FREQ] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_NMOTION_CAM_POS_OCT] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_CAM_POS_DESYNC] = 0.1 tag[c4d.TMOTIONCAM_NMOTION_CAM_POS_OFFSET] = c4d.Vector(1.0,1.0,1.0) tag[c4d.TMOTIONCAM_FOCUS_ENABLED] = True tag[c4d.TMOTIONCAM_FOCUS_FOCALLENGTH] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_APERTURE] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_AUTO_ENABLED] = True tag[c4d.TMOTIONCAM_FOCUS_DISTANCE_DIST] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_DISTANCE_OFFSET] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_VERTIGO_INTENSITY] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_DEPTH_ENABLED] = True tag[c4d.TMOTIONCAM_FOCUS_DEPTH_MODE] = c4d.TMOTIONCAM_FOCUS_DEPTH_MODE_STANDARD tag[c4d.TMOTIONCAM_FOCUS_DEPTH_AREA] = 0.1 tag[c4d.TMOTIONCAM_FOCUS_DEPTH_SOFT] = 0.1 #Second way, using the base container. bc = tag.GetDataInstance() bc.SetBool(c4d.TMOTIONCAM_VIS_CAM_ENABLED,True) bc.SetBool(c4d.TMOTIONCAM_VIS_RIG_ENABLED,True) bc.SetInt32(c4d.TMOTIONCAM_VIS_RIG_MODE,c4d.TMOTIONCAM_VIS_RIG_MODE_SIMPLE) bc.SetBool(c4d.TMOTIONCAM_VIS_TARGET_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_VIS_TARGET_RADIUS,0.1) bc.SetBool(c4d.TMOTIONCAM_VIS_TARGET_DRAWDISTTEXT,True) bc.SetBool(c4d.TMOTIONCAM_VIS_TARGET_DRAWABERRATION,True) bc.SetBool(c4d.TMOTIONCAM_VIS_TARGET_DRAWSINGLETARGETS,True) bc.SetVector(c4d.TMOTIONCAM_EXPORT_TARGETPOS_VECTOR, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_EXPORT_FOOTPOS_VECTOR, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_EXPORT_HEADPOS_VECTOR, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_EXPORT_SPEED,0.1) bc.SetFloat(c4d.TMOTIONCAM_RIG_HEIGHT,0.1) bc.SetVector(c4d.TMOTIONCAM_RIG_PARALLAX, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_ROT_MANUAL_HEAD, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_ROT_MANUAL_CAM, c4d.Vector(1.0,1.0,1.0) bc.SetBool(c4d.TMOTIONCAM_BASE_INHERITPARAMS,True) bc.SetBool(c4d.TMOTIONCAM_BASE_OVERRIDE_RIGHEIGHT,True) bc.SetBool(c4d.TMOTIONCAM_SPLINE_ENABLED,True) bc.SetBool(c4d.TMOTIONCAM_SPLINE_TANGENTIAL,True) bc.SetFloat(c4d.TMOTIONCAM_SPLINE_POS_A,0.1) bc.SetBool(c4d.TMOTIONCAM_SPLINE_AUTO_A_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_SPLINE_POS_B,0.1) bc.SetBool(c4d.TMOTIONCAM_SPLINE_AUTO_B_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_SPLINE_POS_BLEND,0.1) bc.SetBool(c4d.TMOTIONCAM_SPLINE_AUTO_BLEND_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_SPLINE_INTENSITY,0.1) bc.SetBool(c4d.TMOTIONCAM_TARGET_ENABLED,True) bc.SetBool(c4d.TMOTIONCAM_TARGET_COMPENSATE_PARALLAX,True) bc.SetFloat(c4d.TMOTIONCAM_TARGET_SPLINE_A1_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_SPLINE_A2_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_SPLINE_B1_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_SPLINE_B2_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_SPLINE_UPVECTOR_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_BLEND_A,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_BLEND_B,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_BLEND_AB,0.1) bc.SetFloat(c4d.TMOTIONCAM_TARGET_INTENSITY,0.1) bc.SetBool(c4d.TMOTIONCAM_FOLLOW_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_FOLLOW_MAXDISTANCE,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOLLOW_MINDISTANCE,0.1) bc.SetBool(c4d.TMOTIONCAM_AUTOBANKING_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_AUTOBANKING_INTENSITY,0.1) bc.SetFloat(c4d.TMOTIONCAM_AUTOBANKING_DAMPEN,0.1) bc.SetBool(c4d.TMOTIONCAM_FOOT_DYN_ENABLED,True) bc.SetInt32(c4d.TMOTIONCAM_FOOT_DYN_MODE,c4d.TMOTIONCAM_DYN_MODE_DAMPEN) bc.SetFloat(c4d.TMOTIONCAM_FOOT_DYN_DAMP_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOOT_DYN_DAMP_ROT,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOOT_DYN_INERTIA_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOOT_DYN_INERTIA_ROT,0.1) bc.SetBool(c4d.TMOTIONCAM_HEAD_DYN_ENABLED,True) bc.SetInt32(c4d.TMOTIONCAM_HEAD_DYN_MODE,c4d.TMOTIONCAM_DYN_MODE_DAMPEN) bc.SetFloat(c4d.TMOTIONCAM_HEAD_DYN_DAMP_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_HEAD_DYN_DAMP_ROT,0.1) bc.SetFloat(c4d.TMOTIONCAM_HEAD_DYN_INERTIA_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_HEAD_DYN_INERTIA_ROT,0.1) bc.SetBool(c4d.TMOTIONCAM_CAM_DYN_ENABLED,True) bc.SetInt32(c4d.TMOTIONCAM_CAM_DYN_MODE,c4d.TMOTIONCAM_DYN_MODE_DAMPEN) bc.SetFloat(c4d.TMOTIONCAM_CAM_DYN_DAMP_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_CAM_DYN_DAMP_ROT,0.1) bc.SetFloat(c4d.TMOTIONCAM_CAM_DYN_INERTIA_POS,0.1) bc.SetFloat(c4d.TMOTIONCAM_CAM_DYN_INERTIA_ROT,0.1) bc.SetBool(c4d.TMOTIONCAM_FOCUS_DYN_ENABLED,True) bc.SetInt32(c4d.TMOTIONCAM_FOCUS_DYN_MODE,c4d.TMOTIONCAM_DYN_MODE_DAMPEN) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_DYN_DAMP,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_DYN_INERTIA,0.1) bc.SetInt32(c4d.TMOTIONCAM_NMOTION_PRESET,c4d.TMOTIONCAM_NMOTION_PRESET_CUSTOM) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_FOOT_INTENSITY,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_FOOT_SCALE, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_FOOT_FREQ,0.1) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_HEAD_ROT_INTENSITY,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_HEAD_ROT_MAX, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_NMOTION_HEAD_ROT_FREQ, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_HEAD_ROT_OCT,0.1) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_HEAD_ROT_DESYNC,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_HEAD_ROT_OFFSET, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_CAM_ROT_INTENSITY,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_CAM_ROT_MAX, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_NMOTION_CAM_ROT_FREQ, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_CAM_ROT_OCT,0.1) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_CAM_ROT_DESYNC,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_CAM_ROT_OFFSET, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_CAM_POS_INTENSITY,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_CAM_POS_MAX, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.TMOTIONCAM_NMOTION_CAM_POS_FREQ, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_CAM_POS_OCT,0.1) bc.SetFloat(c4d.TMOTIONCAM_NMOTION_CAM_POS_DESYNC,0.1) bc.SetVector(c4d.TMOTIONCAM_NMOTION_CAM_POS_OFFSET, c4d.Vector(1.0,1.0,1.0) bc.SetBool(c4d.TMOTIONCAM_FOCUS_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_FOCALLENGTH,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_APERTURE,0.1) bc.SetBool(c4d.TMOTIONCAM_FOCUS_AUTO_ENABLED,True) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_DISTANCE_DIST,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_DISTANCE_OFFSET,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_VERTIGO_INTENSITY,0.1) bc.SetBool(c4d.TMOTIONCAM_FOCUS_DEPTH_ENABLED,True) bc.SetInt32(c4d.TMOTIONCAM_FOCUS_DEPTH_MODE,c4d.TMOTIONCAM_FOCUS_DEPTH_MODE_STANDARD) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_DEPTH_AREA,0.1) bc.SetFloat(c4d.TMOTIONCAM_FOCUS_DEPTH_SOFT,0.1) if __name__=='__main__': main()
C++
#include "c4d.h" #include "../motioncam/description/tmotioncam.h" void SampleFunction() { BaseDocument *pDoc = GetActiveDocument(); BaseObject *pObject = BaseObject::Alloc(Osphere); pDoc->InsertObject(pObject); pDoc->StartUndo(); pDoc->AddUndo(UNDOTYPE_NEW,pObject); pDoc->EndUndo(); pDoc->StartUndo(); BaseTag *pTag = pObject->MakeTag(Tmotioncam); pDoc->AddUndo(UNDOTYPE_NEW,pTag); pDoc->EndUndo(); pObject->Message(MSG_UPDATE); //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; pTag->SetParameter(DescID(TMOTIONCAM_VIS_CAM_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_RIG_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_RIG_MODE),GeData(TMOTIONCAM_VIS_RIG_MODE_SIMPLE),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_TARGET_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_TARGET_RADIUS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_TARGET_DRAWDISTTEXT),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_TARGET_DRAWABERRATION),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_VIS_TARGET_DRAWSINGLETARGETS),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_EXPORT_TARGETPOS_VECTOR),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_EXPORT_FOOTPOS_VECTOR),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_EXPORT_HEADPOS_VECTOR),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_EXPORT_SPEED),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_RIG_HEIGHT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_RIG_PARALLAX),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_ROT_MANUAL_HEAD),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_ROT_MANUAL_CAM),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_BASE_INHERITPARAMS),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_BASE_OVERRIDE_RIGHEIGHT),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_TANGENTIAL),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_POS_A),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_AUTO_A_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_POS_B),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_AUTO_B_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_POS_BLEND),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_AUTO_BLEND_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_SPLINE_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_COMPENSATE_PARALLAX),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_SPLINE_A1_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_SPLINE_A2_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_SPLINE_B1_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_SPLINE_B2_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_SPLINE_UPVECTOR_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_BLEND_A),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_BLEND_B),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_BLEND_AB),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_TARGET_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOLLOW_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOLLOW_MAXDISTANCE),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOLLOW_MINDISTANCE),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_AUTOBANKING_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_AUTOBANKING_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_AUTOBANKING_DAMPEN),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOOT_DYN_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOOT_DYN_MODE),GeData(TMOTIONCAM_DYN_MODE_DAMPEN),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOOT_DYN_DAMP_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOOT_DYN_DAMP_ROT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOOT_DYN_INERTIA_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOOT_DYN_INERTIA_ROT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_HEAD_DYN_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_HEAD_DYN_MODE),GeData(TMOTIONCAM_DYN_MODE_DAMPEN),flags); pTag->SetParameter(DescID(TMOTIONCAM_HEAD_DYN_DAMP_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_HEAD_DYN_DAMP_ROT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_HEAD_DYN_INERTIA_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_HEAD_DYN_INERTIA_ROT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_CAM_DYN_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_CAM_DYN_MODE),GeData(TMOTIONCAM_DYN_MODE_DAMPEN),flags); pTag->SetParameter(DescID(TMOTIONCAM_CAM_DYN_DAMP_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_CAM_DYN_DAMP_ROT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_CAM_DYN_INERTIA_POS),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_CAM_DYN_INERTIA_ROT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DYN_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DYN_MODE),GeData(TMOTIONCAM_DYN_MODE_DAMPEN),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DYN_DAMP),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DYN_INERTIA),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_PRESET),GeData(TMOTIONCAM_NMOTION_PRESET_CUSTOM),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_FOOT_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_FOOT_SCALE),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_FOOT_FREQ),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_HEAD_ROT_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_HEAD_ROT_MAX),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_HEAD_ROT_FREQ),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_HEAD_ROT_OCT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_HEAD_ROT_DESYNC),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_HEAD_ROT_OFFSET),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_ROT_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_ROT_MAX),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_ROT_FREQ),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_ROT_OCT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_ROT_DESYNC),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_ROT_OFFSET),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_POS_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_POS_MAX),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_POS_FREQ),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_POS_OCT),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_POS_DESYNC),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_NMOTION_CAM_POS_OFFSET),GeData(Vector(1.0,1.0,1.0)),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_FOCALLENGTH),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_APERTURE),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_AUTO_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DISTANCE_DIST),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DISTANCE_OFFSET),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_VERTIGO_INTENSITY),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DEPTH_ENABLED),GeData(true),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DEPTH_MODE),GeData(TMOTIONCAM_FOCUS_DEPTH_MODE_STANDARD),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DEPTH_AREA),GeData(0.1),flags); pTag->SetParameter(DescID(TMOTIONCAM_FOCUS_DEPTH_SOFT),GeData(0.1),flags); pTag->Message(MSG_UPDATE); //Second way, using the base container. BaseContainer *bc = pTag->GetDataInstance(); bc->SetBool(TMOTIONCAM_VIS_CAM_ENABLED,true); bc->SetBool(TMOTIONCAM_VIS_RIG_ENABLED,true); bc->SetInt32(TMOTIONCAM_VIS_RIG_MODE,TMOTIONCAM_VIS_RIG_MODE_SIMPLE); bc->SetBool(TMOTIONCAM_VIS_TARGET_ENABLED,true); bc->SetFloat(TMOTIONCAM_VIS_TARGET_RADIUS,0.1); bc->SetBool(TMOTIONCAM_VIS_TARGET_DRAWDISTTEXT,true); bc->SetBool(TMOTIONCAM_VIS_TARGET_DRAWABERRATION,true); bc->SetBool(TMOTIONCAM_VIS_TARGET_DRAWSINGLETARGETS,true); bc->SetVector(TMOTIONCAM_EXPORT_TARGETPOS_VECTOR, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_EXPORT_FOOTPOS_VECTOR, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_EXPORT_HEADPOS_VECTOR, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_EXPORT_SPEED,0.1); bc->SetFloat(TMOTIONCAM_RIG_HEIGHT,0.1); bc->SetVector(TMOTIONCAM_RIG_PARALLAX, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_ROT_MANUAL_HEAD, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_ROT_MANUAL_CAM, c4d.Vector(1.0,1.0,1.0); bc->SetBool(TMOTIONCAM_BASE_INHERITPARAMS,true); bc->SetBool(TMOTIONCAM_BASE_OVERRIDE_RIGHEIGHT,true); bc->SetBool(TMOTIONCAM_SPLINE_ENABLED,true); bc->SetBool(TMOTIONCAM_SPLINE_TANGENTIAL,true); bc->SetFloat(TMOTIONCAM_SPLINE_POS_A,0.1); bc->SetBool(TMOTIONCAM_SPLINE_AUTO_A_ENABLED,true); bc->SetFloat(TMOTIONCAM_SPLINE_POS_B,0.1); bc->SetBool(TMOTIONCAM_SPLINE_AUTO_B_ENABLED,true); bc->SetFloat(TMOTIONCAM_SPLINE_POS_BLEND,0.1); bc->SetBool(TMOTIONCAM_SPLINE_AUTO_BLEND_ENABLED,true); bc->SetFloat(TMOTIONCAM_SPLINE_INTENSITY,0.1); bc->SetBool(TMOTIONCAM_TARGET_ENABLED,true); bc->SetBool(TMOTIONCAM_TARGET_COMPENSATE_PARALLAX,true); bc->SetFloat(TMOTIONCAM_TARGET_SPLINE_A1_POS,0.1); bc->SetFloat(TMOTIONCAM_TARGET_SPLINE_A2_POS,0.1); bc->SetFloat(TMOTIONCAM_TARGET_SPLINE_B1_POS,0.1); bc->SetFloat(TMOTIONCAM_TARGET_SPLINE_B2_POS,0.1); bc->SetFloat(TMOTIONCAM_TARGET_SPLINE_UPVECTOR_POS,0.1); bc->SetFloat(TMOTIONCAM_TARGET_BLEND_A,0.1); bc->SetFloat(TMOTIONCAM_TARGET_BLEND_B,0.1); bc->SetFloat(TMOTIONCAM_TARGET_BLEND_AB,0.1); bc->SetFloat(TMOTIONCAM_TARGET_INTENSITY,0.1); bc->SetBool(TMOTIONCAM_FOLLOW_ENABLED,true); bc->SetFloat(TMOTIONCAM_FOLLOW_MAXDISTANCE,0.1); bc->SetFloat(TMOTIONCAM_FOLLOW_MINDISTANCE,0.1); bc->SetBool(TMOTIONCAM_AUTOBANKING_ENABLED,true); bc->SetFloat(TMOTIONCAM_AUTOBANKING_INTENSITY,0.1); bc->SetFloat(TMOTIONCAM_AUTOBANKING_DAMPEN,0.1); bc->SetBool(TMOTIONCAM_FOOT_DYN_ENABLED,true); bc->SetInt32(TMOTIONCAM_FOOT_DYN_MODE,TMOTIONCAM_DYN_MODE_DAMPEN); bc->SetFloat(TMOTIONCAM_FOOT_DYN_DAMP_POS,0.1); bc->SetFloat(TMOTIONCAM_FOOT_DYN_DAMP_ROT,0.1); bc->SetFloat(TMOTIONCAM_FOOT_DYN_INERTIA_POS,0.1); bc->SetFloat(TMOTIONCAM_FOOT_DYN_INERTIA_ROT,0.1); bc->SetBool(TMOTIONCAM_HEAD_DYN_ENABLED,true); bc->SetInt32(TMOTIONCAM_HEAD_DYN_MODE,TMOTIONCAM_DYN_MODE_DAMPEN); bc->SetFloat(TMOTIONCAM_HEAD_DYN_DAMP_POS,0.1); bc->SetFloat(TMOTIONCAM_HEAD_DYN_DAMP_ROT,0.1); bc->SetFloat(TMOTIONCAM_HEAD_DYN_INERTIA_POS,0.1); bc->SetFloat(TMOTIONCAM_HEAD_DYN_INERTIA_ROT,0.1); bc->SetBool(TMOTIONCAM_CAM_DYN_ENABLED,true); bc->SetInt32(TMOTIONCAM_CAM_DYN_MODE,TMOTIONCAM_DYN_MODE_DAMPEN); bc->SetFloat(TMOTIONCAM_CAM_DYN_DAMP_POS,0.1); bc->SetFloat(TMOTIONCAM_CAM_DYN_DAMP_ROT,0.1); bc->SetFloat(TMOTIONCAM_CAM_DYN_INERTIA_POS,0.1); bc->SetFloat(TMOTIONCAM_CAM_DYN_INERTIA_ROT,0.1); bc->SetBool(TMOTIONCAM_FOCUS_DYN_ENABLED,true); bc->SetInt32(TMOTIONCAM_FOCUS_DYN_MODE,TMOTIONCAM_DYN_MODE_DAMPEN); bc->SetFloat(TMOTIONCAM_FOCUS_DYN_DAMP,0.1); bc->SetFloat(TMOTIONCAM_FOCUS_DYN_INERTIA,0.1); bc->SetInt32(TMOTIONCAM_NMOTION_PRESET,TMOTIONCAM_NMOTION_PRESET_CUSTOM); bc->SetFloat(TMOTIONCAM_NMOTION_FOOT_INTENSITY,0.1); bc->SetVector(TMOTIONCAM_NMOTION_FOOT_SCALE, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_NMOTION_FOOT_FREQ,0.1); bc->SetFloat(TMOTIONCAM_NMOTION_HEAD_ROT_INTENSITY,0.1); bc->SetVector(TMOTIONCAM_NMOTION_HEAD_ROT_MAX, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_NMOTION_HEAD_ROT_FREQ, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_NMOTION_HEAD_ROT_OCT,0.1); bc->SetFloat(TMOTIONCAM_NMOTION_HEAD_ROT_DESYNC,0.1); bc->SetVector(TMOTIONCAM_NMOTION_HEAD_ROT_OFFSET, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_NMOTION_CAM_ROT_INTENSITY,0.1); bc->SetVector(TMOTIONCAM_NMOTION_CAM_ROT_MAX, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_NMOTION_CAM_ROT_FREQ, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_NMOTION_CAM_ROT_OCT,0.1); bc->SetFloat(TMOTIONCAM_NMOTION_CAM_ROT_DESYNC,0.1); bc->SetVector(TMOTIONCAM_NMOTION_CAM_ROT_OFFSET, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_NMOTION_CAM_POS_INTENSITY,0.1); bc->SetVector(TMOTIONCAM_NMOTION_CAM_POS_MAX, c4d.Vector(1.0,1.0,1.0); bc->SetVector(TMOTIONCAM_NMOTION_CAM_POS_FREQ, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(TMOTIONCAM_NMOTION_CAM_POS_OCT,0.1); bc->SetFloat(TMOTIONCAM_NMOTION_CAM_POS_DESYNC,0.1); bc->SetVector(TMOTIONCAM_NMOTION_CAM_POS_OFFSET, c4d.Vector(1.0,1.0,1.0); bc->SetBool(TMOTIONCAM_FOCUS_ENABLED,true); bc->SetFloat(TMOTIONCAM_FOCUS_FOCALLENGTH,0.1); bc->SetFloat(TMOTIONCAM_FOCUS_APERTURE,0.1); bc->SetBool(TMOTIONCAM_FOCUS_AUTO_ENABLED,true); bc->SetFloat(TMOTIONCAM_FOCUS_DISTANCE_DIST,0.1); bc->SetFloat(TMOTIONCAM_FOCUS_DISTANCE_OFFSET,0.1); bc->SetFloat(TMOTIONCAM_FOCUS_VERTIGO_INTENSITY,0.1); bc->SetBool(TMOTIONCAM_FOCUS_DEPTH_ENABLED,true); bc->SetInt32(TMOTIONCAM_FOCUS_DEPTH_MODE,TMOTIONCAM_FOCUS_DEPTH_MODE_STANDARD); bc->SetFloat(TMOTIONCAM_FOCUS_DEPTH_AREA,0.1); bc->SetFloat(TMOTIONCAM_FOCUS_DEPTH_SOFT,0.1); pTag->Message(MSG_UPDATE); }