Omotiontracker
Attributes
-
ENGLISH NAME : MotionTrackerObject
-
NAME : Omotiontracker
-
INCLUDE : Obase
-
PATH : motiontracker/description/omotiontracker.res
-
PLUGIN : motiontracker
-
MAXON online help (may not exist): OMOTIONTRACKER
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.Omotiontracker)
doc.InsertObject(obj)
c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
#You can set parameters two different ways.
#First way
obj[c4d.PH_FOOTAGE_FILENAME] = "c:\\SomeFile.txt"
obj[c4d.PH_LENS_PROFILE_FILENAME] = "c:\\SomeFile.txt"
obj[c4d.PH_FOOTAGE_DOWNSAMPLING_FACTOR] = 0.1
obj[c4d.PH_RDATA_FILMASPECT] = 0.1
obj[c4d.PH_RDATA_FILMPRESET] = c4d.PH_RDATA_FILMPRESET_CUSTOM
obj[c4d.PH_FOOTAGE_TRACK_FRAME_START] = 1
obj[c4d.PH_FOOTAGE_TRACK_FRAME_STOP] = 1
obj[c4d.PH_FOOTAGE_VIEW_SCALE] = 0.1
obj[c4d.PH_FOOTAGE_VIEW_OFFSET_X] = 0.1
obj[c4d.PH_FOOTAGE_VIEW_OFFSET_Y] = 0.1
obj[c4d.PH_FOOTAGE_OFFSET_TRACKS_SELECTED] = True
obj[c4d.PH_FOOTAGE_BRIGHTNESS] = 0.1
obj[c4d.PH_FOOTAGE_SHOW_IMAGE] = True
obj[c4d.PH_2D_TRACK_SUBTAB_MODE] = c4d.PH_SUBTAB_2D_TRACK_AUTO
obj[c4d.PH_2D_TRACK_USER_AUTOKEYING] = True
obj[c4d.PH_2D_TRACK_USER_AUTOKEYING_MODE] = 1
obj[c4d.PH_2D_TRACK_USER_AUTOKEYING_ERROR_THRESHOLD] = 0.1
obj[c4d.PH_2D_TRACK_USER_AUTOKEYING_INTERVAL] = 1
obj[c4d.PH_2D_TRACK_COLOR_MIX_PRESET] = 1
obj[c4d.PH_2D_TRACK_USER_redWeightActive] = 0.1
obj[c4d.PH_2D_TRACK_USER_greenWeightActive] = 0.1
obj[c4d.PH_2D_TRACK_USER_blueWeightActive] = 0.1
obj[c4d.PH_2D_TRACK_numFeatsTargetFullFrame] = 1
obj[c4d.PH_2D_TRACK_minSpacing] = 1
obj[c4d.PH_2D_TRACK_autoReplaceLostFeatures] = True
obj[c4d.PH_2D_TRACK_FILTER_minTrackLen_Active] = True
obj[c4d.PH_2D_TRACK_FILTER_minTrackLen] = 1
obj[c4d.PH_2D_TRACK_FILTER_maxAccel_Active] = True
obj[c4d.PH_2D_TRACK_FILTER_maxAccel] = 0.1
obj[c4d.PH_2D_TRACK_FILTER_maxError_Active] = True
obj[c4d.PH_2D_TRACK_FILTER_maxError] = 0.1
obj[c4d.PH_2D_TRACK_FILTER_smartAccel_Active] = True
obj[c4d.PH_2D_TRACK_FILTER_smartAccel] = 0.1
obj[c4d.PH_2D_TRACK_featSizeDefault] = 1
obj[c4d.PH_2D_TRACK_trackWindowSizeDefault] = 1
obj[c4d.PH_2D_TRACK_circularFeatsDefault] = c4d.PH_2D_TRACK_SQUARE_FEATURE
obj[c4d.PH_2D_TRACK_DISP_FEAT_MODE] = c4d.PH_2D_TRACK_dispFeat_showFeat
obj[c4d.PH_SHOW_TRACKER_VIEW_OF_FOOTAGE_MODE] = 1
obj[c4d.PH_2D_TRACK_showFeatSize] = True
obj[c4d.PH_2D_TRACK_showTrackWindowSize] = True
obj[c4d.PH_2D_TRACK_showMagnifierOnDrag] = True
obj[c4d.PH_2D_TRACK_USER_redWeightDefault] = 0.1
obj[c4d.PH_2D_TRACK_USER_greenWeightDefault] = 0.1
obj[c4d.PH_2D_TRACK_USER_blueWeightDefault] = 0.1
obj[c4d.PH_2D_TRACK_useExtrapolated2dTracking] = True
obj[c4d.PH_USE_VIRTUAL_OBJECT_PREFIX_FOR_TRACK_TREEVIEW] = True
obj[c4d.PH_3D_RECON_SUBTAB_MODE] = c4d.PH_SUBTAB_3D_RECON_RECON
obj[c4d.PH_SOLVE_MODE] = c4d.PH_SOLVE_MODE_FULL_3D
obj[c4d.PH_FOCAL_SOLVE_MODE] = c4d.PH_FOCAL_MODE_UNKNOWN_VARIABLE
obj[c4d.PH_FOCAL_KNOWN_FIXED] = 0.1
obj[c4d.PH_CAMERAOBJECT_FOCUS_PRESET] = c4d.PH_CAMERAOBJECT_FOCUS_PRESET_CUSTOM
obj[c4d.PH_APERTURE_KNOWN_FIXED] = 0.1
obj[c4d.PH_CAMERAOBJECT_APERTURE_PRESET] = c4d.PH_CAMERAOBJECT_APERTURE_PRESET_CUSTOM
obj[c4d.PH_CAMERAOBJECT_FOV] = 0.1
obj[c4d.PH_CAMERAOBJECT_FOV_VERTICAL] = 0.1
obj[c4d.PH_KEEP_BACKGROUND_RECON_WHEN_TRACK_2D_CHANGES] = True
obj[c4d.PH_3D_RECON_NULLOBJECT_DISPLAY_MODE] = c4d.PH_3D_RECON_NULLOBJECT_DISPLAY_NONE
obj[c4d.PH_3D_RECON_NULLOBJECT_RADIUS] = 0.1
obj[c4d.PH_SR_PRESET_MODE] = c4d.PH_SR_PRESET_MODE_PREVIEW
obj[c4d.PH_SR_NUM_EXPAND_FILTER_PASSES] = 1
obj[c4d.PH_SR_SUBSAMPLING_LEVEL] = 1
obj[c4d.PH_SR_POINT_DENSITY] = 1
obj[c4d.PH_SR_PATCH_SIZE_PIX] = 1
obj[c4d.PH_SR_TEXTURE_DETAIL_THRESHOLD] = 0.1
obj[c4d.PH_SR_RUN_FILTER_GROUPS_DBG] = True
obj[c4d.PH_SR_MIN_BASELINE_ANGLE] = 0.1
obj[c4d.PH_SR_OVERALL_AREA_WEIGHT] = 0.1
obj[c4d.PH_SR_OVERALL_PHOTOMETRIC_WEIGHT] = 0.1
obj[c4d.PH_SR_EXPORT_PARTIAL_SOLVES_DBG] = True
obj[c4d.PH_SR_SUBSAMPLING_LEVEL] = 1
obj[c4d.PH_SR_CELL_SIZE_PIX] = 1
obj[c4d.PH_SR_NCC_THRESH] = 0.1
obj[c4d.PH_SR_MIN_NUM_SUPPORT_IMAGES] = 1
obj[c4d.PH_SR_MAX_FRAME_OFFSET] = 1
obj[c4d.PH_SR_MAX_BASELINE_ANGLE] = 0.1
obj[c4d.PH_SR_TEXTURE_DETAIL_THRESHOLD] = 0.1
obj[c4d.PH_SR_STRICT_COMPAT_MODE_DBG] = True
obj[c4d.PH_SR_RUN_EXPANSION_DBG] = True
obj[c4d.PH_SR_RUN_FILTER_OUTER_DBG] = True
obj[c4d.PH_SR_RUN_FILTER_VISIBILITY_DBG] = True
obj[c4d.PH_SR_RUN_FILTER_SURFACE_DBG] = True
obj[c4d.PH_SR_OVERALL_RAY_WEIGHT] = 0.1
obj[c4d.PH_DEBUG_BUTTON_15] = 1
#Second way, using the base container.
bc = obj.GetDataInstance()
bc.SetFileName(c4d.PH_FOOTAGE_FILENAME,"c:\\SomeFile.txt")
bc.SetFileName(c4d.PH_LENS_PROFILE_FILENAME,"c:\\SomeFile.txt")
bc.SetFloat(c4d.PH_FOOTAGE_DOWNSAMPLING_FACTOR,0.1)
bc.SetFloat(c4d.PH_RDATA_FILMASPECT,0.1)
bc.SetInt32(c4d.PH_RDATA_FILMPRESET,c4d.PH_RDATA_FILMPRESET_CUSTOM)
bc.SetInt32(c4d.PH_FOOTAGE_TRACK_FRAME_START,1)
bc.SetInt32(c4d.PH_FOOTAGE_TRACK_FRAME_STOP,1)
bc.SetFloat(c4d.PH_FOOTAGE_VIEW_SCALE,0.1)
bc.SetFloat(c4d.PH_FOOTAGE_VIEW_OFFSET_X,0.1)
bc.SetFloat(c4d.PH_FOOTAGE_VIEW_OFFSET_Y,0.1)
bc.SetBool(c4d.PH_FOOTAGE_OFFSET_TRACKS_SELECTED,True)
bc.SetFloat(c4d.PH_FOOTAGE_BRIGHTNESS,0.1)
bc.SetBool(c4d.PH_FOOTAGE_SHOW_IMAGE,True)
bc.SetInt32(c4d.PH_2D_TRACK_SUBTAB_MODE,c4d.PH_SUBTAB_2D_TRACK_AUTO)
bc.SetBool(c4d.PH_2D_TRACK_USER_AUTOKEYING,True)
bc.SetInt32(c4d.PH_2D_TRACK_USER_AUTOKEYING_MODE,1)
bc.SetFloat(c4d.PH_2D_TRACK_USER_AUTOKEYING_ERROR_THRESHOLD,0.1)
bc.SetInt32(c4d.PH_2D_TRACK_USER_AUTOKEYING_INTERVAL,1)
bc.SetInt32(c4d.PH_2D_TRACK_COLOR_MIX_PRESET,1)
bc.SetFloat(c4d.PH_2D_TRACK_USER_redWeightActive,0.1)
bc.SetFloat(c4d.PH_2D_TRACK_USER_greenWeightActive,0.1)
bc.SetFloat(c4d.PH_2D_TRACK_USER_blueWeightActive,0.1)
bc.SetInt32(c4d.PH_2D_TRACK_numFeatsTargetFullFrame,1)
bc.SetInt32(c4d.PH_2D_TRACK_minSpacing,1)
bc.SetBool(c4d.PH_2D_TRACK_autoReplaceLostFeatures,True)
bc.SetBool(c4d.PH_2D_TRACK_FILTER_minTrackLen_Active,True)
bc.SetInt32(c4d.PH_2D_TRACK_FILTER_minTrackLen,1)
bc.SetBool(c4d.PH_2D_TRACK_FILTER_maxAccel_Active,True)
bc.SetFloat(c4d.PH_2D_TRACK_FILTER_maxAccel,0.1)
bc.SetBool(c4d.PH_2D_TRACK_FILTER_maxError_Active,True)
bc.SetFloat(c4d.PH_2D_TRACK_FILTER_maxError,0.1)
bc.SetBool(c4d.PH_2D_TRACK_FILTER_smartAccel_Active,True)
bc.SetFloat(c4d.PH_2D_TRACK_FILTER_smartAccel,0.1)
bc.SetInt32(c4d.PH_2D_TRACK_featSizeDefault,1)
bc.SetInt32(c4d.PH_2D_TRACK_trackWindowSizeDefault,1)
bc.SetInt32(c4d.PH_2D_TRACK_circularFeatsDefault,c4d.PH_2D_TRACK_SQUARE_FEATURE)
bc.SetInt32(c4d.PH_2D_TRACK_DISP_FEAT_MODE,c4d.PH_2D_TRACK_dispFeat_showFeat)
bc.SetInt32(c4d.PH_SHOW_TRACKER_VIEW_OF_FOOTAGE_MODE,1)
bc.SetBool(c4d.PH_2D_TRACK_showFeatSize,True)
bc.SetBool(c4d.PH_2D_TRACK_showTrackWindowSize,True)
bc.SetBool(c4d.PH_2D_TRACK_showMagnifierOnDrag,True)
bc.SetFloat(c4d.PH_2D_TRACK_USER_redWeightDefault,0.1)
bc.SetFloat(c4d.PH_2D_TRACK_USER_greenWeightDefault,0.1)
bc.SetFloat(c4d.PH_2D_TRACK_USER_blueWeightDefault,0.1)
bc.SetBool(c4d.PH_2D_TRACK_useExtrapolated2dTracking,True)
bc.SetBool(c4d.PH_USE_VIRTUAL_OBJECT_PREFIX_FOR_TRACK_TREEVIEW,True)
bc.SetInt32(c4d.PH_3D_RECON_SUBTAB_MODE,c4d.PH_SUBTAB_3D_RECON_RECON)
bc.SetInt32(c4d.PH_SOLVE_MODE,c4d.PH_SOLVE_MODE_FULL_3D)
bc.SetInt32(c4d.PH_FOCAL_SOLVE_MODE,c4d.PH_FOCAL_MODE_UNKNOWN_VARIABLE)
bc.SetFloat(c4d.PH_FOCAL_KNOWN_FIXED,0.1)
bc.SetInt32(c4d.PH_CAMERAOBJECT_FOCUS_PRESET,c4d.PH_CAMERAOBJECT_FOCUS_PRESET_CUSTOM)
bc.SetFloat(c4d.PH_APERTURE_KNOWN_FIXED,0.1)
bc.SetInt32(c4d.PH_CAMERAOBJECT_APERTURE_PRESET,c4d.PH_CAMERAOBJECT_APERTURE_PRESET_CUSTOM)
bc.SetFloat(c4d.PH_CAMERAOBJECT_FOV,0.1)
bc.SetFloat(c4d.PH_CAMERAOBJECT_FOV_VERTICAL,0.1)
bc.SetBool(c4d.PH_KEEP_BACKGROUND_RECON_WHEN_TRACK_2D_CHANGES,True)
bc.SetInt32(c4d.PH_3D_RECON_NULLOBJECT_DISPLAY_MODE,c4d.PH_3D_RECON_NULLOBJECT_DISPLAY_NONE)
bc.SetFloat(c4d.PH_3D_RECON_NULLOBJECT_RADIUS,0.1)
bc.SetInt32(c4d.PH_SR_PRESET_MODE,c4d.PH_SR_PRESET_MODE_PREVIEW)
bc.SetInt32(c4d.PH_SR_NUM_EXPAND_FILTER_PASSES,1)
bc.SetInt32(c4d.PH_SR_SUBSAMPLING_LEVEL,1)
bc.SetInt32(c4d.PH_SR_POINT_DENSITY,1)
bc.SetInt32(c4d.PH_SR_PATCH_SIZE_PIX,1)
bc.SetFloat(c4d.PH_SR_TEXTURE_DETAIL_THRESHOLD,0.1)
bc.SetBool(c4d.PH_SR_RUN_FILTER_GROUPS_DBG,True)
bc.SetFloat(c4d.PH_SR_MIN_BASELINE_ANGLE,0.1)
bc.SetFloat(c4d.PH_SR_OVERALL_AREA_WEIGHT,0.1)
bc.SetFloat(c4d.PH_SR_OVERALL_PHOTOMETRIC_WEIGHT,0.1)
bc.SetBool(c4d.PH_SR_EXPORT_PARTIAL_SOLVES_DBG,True)
bc.SetInt32(c4d.PH_SR_SUBSAMPLING_LEVEL,1)
bc.SetInt32(c4d.PH_SR_CELL_SIZE_PIX,1)
bc.SetFloat(c4d.PH_SR_NCC_THRESH,0.1)
bc.SetInt32(c4d.PH_SR_MIN_NUM_SUPPORT_IMAGES,1)
bc.SetInt32(c4d.PH_SR_MAX_FRAME_OFFSET,1)
bc.SetFloat(c4d.PH_SR_MAX_BASELINE_ANGLE,0.1)
bc.SetFloat(c4d.PH_SR_TEXTURE_DETAIL_THRESHOLD,0.1)
bc.SetBool(c4d.PH_SR_STRICT_COMPAT_MODE_DBG,True)
bc.SetBool(c4d.PH_SR_RUN_EXPANSION_DBG,True)
bc.SetBool(c4d.PH_SR_RUN_FILTER_OUTER_DBG,True)
bc.SetBool(c4d.PH_SR_RUN_FILTER_VISIBILITY_DBG,True)
bc.SetBool(c4d.PH_SR_RUN_FILTER_SURFACE_DBG,True)
bc.SetFloat(c4d.PH_SR_OVERALL_RAY_WEIGHT,0.1)
bc.SetInt32(c4d.PH_DEBUG_BUTTON_15,1)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../motiontracker/description/omotiontracker.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseObject *pObject = BaseObject::Alloc(Omotiontracker);
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(PH_FOOTAGE_FILENAME),GeData(Filename("c:\\SomeFile.txt"),flags);
pObject->SetParameter(DescID(PH_LENS_PROFILE_FILENAME),GeData(Filename("c:\\SomeFile.txt"),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_DOWNSAMPLING_FACTOR),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_RDATA_FILMASPECT),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_RDATA_FILMPRESET),GeData(PH_RDATA_FILMPRESET_CUSTOM),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_TRACK_FRAME_START),GeData(1),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_TRACK_FRAME_STOP),GeData(1),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_VIEW_SCALE),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_VIEW_OFFSET_X),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_VIEW_OFFSET_Y),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_OFFSET_TRACKS_SELECTED),GeData(true),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_BRIGHTNESS),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_FOOTAGE_SHOW_IMAGE),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_SUBTAB_MODE),GeData(PH_SUBTAB_2D_TRACK_AUTO),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_AUTOKEYING),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_AUTOKEYING_MODE),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_AUTOKEYING_ERROR_THRESHOLD),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_AUTOKEYING_INTERVAL),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_COLOR_MIX_PRESET),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_redWeightActive),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_greenWeightActive),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_blueWeightActive),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_numFeatsTargetFullFrame),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_minSpacing),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_autoReplaceLostFeatures),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_minTrackLen_Active),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_minTrackLen),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_maxAccel_Active),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_maxAccel),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_maxError_Active),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_maxError),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_smartAccel_Active),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_FILTER_smartAccel),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_featSizeDefault),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_trackWindowSizeDefault),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_circularFeatsDefault),GeData(PH_2D_TRACK_SQUARE_FEATURE),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_DISP_FEAT_MODE),GeData(PH_2D_TRACK_dispFeat_showFeat),flags);
pObject->SetParameter(DescID(PH_SHOW_TRACKER_VIEW_OF_FOOTAGE_MODE),GeData(1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_showFeatSize),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_showTrackWindowSize),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_showMagnifierOnDrag),GeData(true),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_redWeightDefault),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_greenWeightDefault),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_USER_blueWeightDefault),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_2D_TRACK_useExtrapolated2dTracking),GeData(true),flags);
pObject->SetParameter(DescID(PH_USE_VIRTUAL_OBJECT_PREFIX_FOR_TRACK_TREEVIEW),GeData(true),flags);
pObject->SetParameter(DescID(PH_3D_RECON_SUBTAB_MODE),GeData(PH_SUBTAB_3D_RECON_RECON),flags);
pObject->SetParameter(DescID(PH_SOLVE_MODE),GeData(PH_SOLVE_MODE_FULL_3D),flags);
pObject->SetParameter(DescID(PH_FOCAL_SOLVE_MODE),GeData(PH_FOCAL_MODE_UNKNOWN_VARIABLE),flags);
pObject->SetParameter(DescID(PH_FOCAL_KNOWN_FIXED),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_CAMERAOBJECT_FOCUS_PRESET),GeData(PH_CAMERAOBJECT_FOCUS_PRESET_CUSTOM),flags);
pObject->SetParameter(DescID(PH_APERTURE_KNOWN_FIXED),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_CAMERAOBJECT_APERTURE_PRESET),GeData(PH_CAMERAOBJECT_APERTURE_PRESET_CUSTOM),flags);
pObject->SetParameter(DescID(PH_CAMERAOBJECT_FOV),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_CAMERAOBJECT_FOV_VERTICAL),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_KEEP_BACKGROUND_RECON_WHEN_TRACK_2D_CHANGES),GeData(true),flags);
pObject->SetParameter(DescID(PH_3D_RECON_NULLOBJECT_DISPLAY_MODE),GeData(PH_3D_RECON_NULLOBJECT_DISPLAY_NONE),flags);
pObject->SetParameter(DescID(PH_3D_RECON_NULLOBJECT_RADIUS),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_PRESET_MODE),GeData(PH_SR_PRESET_MODE_PREVIEW),flags);
pObject->SetParameter(DescID(PH_SR_NUM_EXPAND_FILTER_PASSES),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_SUBSAMPLING_LEVEL),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_POINT_DENSITY),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_PATCH_SIZE_PIX),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_TEXTURE_DETAIL_THRESHOLD),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_RUN_FILTER_GROUPS_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_MIN_BASELINE_ANGLE),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_OVERALL_AREA_WEIGHT),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_OVERALL_PHOTOMETRIC_WEIGHT),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_EXPORT_PARTIAL_SOLVES_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_SUBSAMPLING_LEVEL),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_CELL_SIZE_PIX),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_NCC_THRESH),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_MIN_NUM_SUPPORT_IMAGES),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_MAX_FRAME_OFFSET),GeData(1),flags);
pObject->SetParameter(DescID(PH_SR_MAX_BASELINE_ANGLE),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_TEXTURE_DETAIL_THRESHOLD),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_SR_STRICT_COMPAT_MODE_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_RUN_EXPANSION_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_RUN_FILTER_OUTER_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_RUN_FILTER_VISIBILITY_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_RUN_FILTER_SURFACE_DBG),GeData(true),flags);
pObject->SetParameter(DescID(PH_SR_OVERALL_RAY_WEIGHT),GeData(0.1),flags);
pObject->SetParameter(DescID(PH_DEBUG_BUTTON_15),GeData(1),flags);
pObject->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pObject->GetDataInstance();
bc->SetFileName(PH_FOOTAGE_FILENAME,"c:\\SomeFile.txt");
bc->SetFileName(PH_LENS_PROFILE_FILENAME,"c:\\SomeFile.txt");
bc->SetFloat(PH_FOOTAGE_DOWNSAMPLING_FACTOR,0.1);
bc->SetFloat(PH_RDATA_FILMASPECT,0.1);
bc->SetInt32(PH_RDATA_FILMPRESET,PH_RDATA_FILMPRESET_CUSTOM);
bc->SetInt32(PH_FOOTAGE_TRACK_FRAME_START,1);
bc->SetInt32(PH_FOOTAGE_TRACK_FRAME_STOP,1);
bc->SetFloat(PH_FOOTAGE_VIEW_SCALE,0.1);
bc->SetFloat(PH_FOOTAGE_VIEW_OFFSET_X,0.1);
bc->SetFloat(PH_FOOTAGE_VIEW_OFFSET_Y,0.1);
bc->SetBool(PH_FOOTAGE_OFFSET_TRACKS_SELECTED,true);
bc->SetFloat(PH_FOOTAGE_BRIGHTNESS,0.1);
bc->SetBool(PH_FOOTAGE_SHOW_IMAGE,true);
bc->SetInt32(PH_2D_TRACK_SUBTAB_MODE,PH_SUBTAB_2D_TRACK_AUTO);
bc->SetBool(PH_2D_TRACK_USER_AUTOKEYING,true);
bc->SetInt32(PH_2D_TRACK_USER_AUTOKEYING_MODE,1);
bc->SetFloat(PH_2D_TRACK_USER_AUTOKEYING_ERROR_THRESHOLD,0.1);
bc->SetInt32(PH_2D_TRACK_USER_AUTOKEYING_INTERVAL,1);
bc->SetInt32(PH_2D_TRACK_COLOR_MIX_PRESET,1);
bc->SetFloat(PH_2D_TRACK_USER_redWeightActive,0.1);
bc->SetFloat(PH_2D_TRACK_USER_greenWeightActive,0.1);
bc->SetFloat(PH_2D_TRACK_USER_blueWeightActive,0.1);
bc->SetInt32(PH_2D_TRACK_numFeatsTargetFullFrame,1);
bc->SetInt32(PH_2D_TRACK_minSpacing,1);
bc->SetBool(PH_2D_TRACK_autoReplaceLostFeatures,true);
bc->SetBool(PH_2D_TRACK_FILTER_minTrackLen_Active,true);
bc->SetInt32(PH_2D_TRACK_FILTER_minTrackLen,1);
bc->SetBool(PH_2D_TRACK_FILTER_maxAccel_Active,true);
bc->SetFloat(PH_2D_TRACK_FILTER_maxAccel,0.1);
bc->SetBool(PH_2D_TRACK_FILTER_maxError_Active,true);
bc->SetFloat(PH_2D_TRACK_FILTER_maxError,0.1);
bc->SetBool(PH_2D_TRACK_FILTER_smartAccel_Active,true);
bc->SetFloat(PH_2D_TRACK_FILTER_smartAccel,0.1);
bc->SetInt32(PH_2D_TRACK_featSizeDefault,1);
bc->SetInt32(PH_2D_TRACK_trackWindowSizeDefault,1);
bc->SetInt32(PH_2D_TRACK_circularFeatsDefault,PH_2D_TRACK_SQUARE_FEATURE);
bc->SetInt32(PH_2D_TRACK_DISP_FEAT_MODE,PH_2D_TRACK_dispFeat_showFeat);
bc->SetInt32(PH_SHOW_TRACKER_VIEW_OF_FOOTAGE_MODE,1);
bc->SetBool(PH_2D_TRACK_showFeatSize,true);
bc->SetBool(PH_2D_TRACK_showTrackWindowSize,true);
bc->SetBool(PH_2D_TRACK_showMagnifierOnDrag,true);
bc->SetFloat(PH_2D_TRACK_USER_redWeightDefault,0.1);
bc->SetFloat(PH_2D_TRACK_USER_greenWeightDefault,0.1);
bc->SetFloat(PH_2D_TRACK_USER_blueWeightDefault,0.1);
bc->SetBool(PH_2D_TRACK_useExtrapolated2dTracking,true);
bc->SetBool(PH_USE_VIRTUAL_OBJECT_PREFIX_FOR_TRACK_TREEVIEW,true);
bc->SetInt32(PH_3D_RECON_SUBTAB_MODE,PH_SUBTAB_3D_RECON_RECON);
bc->SetInt32(PH_SOLVE_MODE,PH_SOLVE_MODE_FULL_3D);
bc->SetInt32(PH_FOCAL_SOLVE_MODE,PH_FOCAL_MODE_UNKNOWN_VARIABLE);
bc->SetFloat(PH_FOCAL_KNOWN_FIXED,0.1);
bc->SetInt32(PH_CAMERAOBJECT_FOCUS_PRESET,PH_CAMERAOBJECT_FOCUS_PRESET_CUSTOM);
bc->SetFloat(PH_APERTURE_KNOWN_FIXED,0.1);
bc->SetInt32(PH_CAMERAOBJECT_APERTURE_PRESET,PH_CAMERAOBJECT_APERTURE_PRESET_CUSTOM);
bc->SetFloat(PH_CAMERAOBJECT_FOV,0.1);
bc->SetFloat(PH_CAMERAOBJECT_FOV_VERTICAL,0.1);
bc->SetBool(PH_KEEP_BACKGROUND_RECON_WHEN_TRACK_2D_CHANGES,true);
bc->SetInt32(PH_3D_RECON_NULLOBJECT_DISPLAY_MODE,PH_3D_RECON_NULLOBJECT_DISPLAY_NONE);
bc->SetFloat(PH_3D_RECON_NULLOBJECT_RADIUS,0.1);
bc->SetInt32(PH_SR_PRESET_MODE,PH_SR_PRESET_MODE_PREVIEW);
bc->SetInt32(PH_SR_NUM_EXPAND_FILTER_PASSES,1);
bc->SetInt32(PH_SR_SUBSAMPLING_LEVEL,1);
bc->SetInt32(PH_SR_POINT_DENSITY,1);
bc->SetInt32(PH_SR_PATCH_SIZE_PIX,1);
bc->SetFloat(PH_SR_TEXTURE_DETAIL_THRESHOLD,0.1);
bc->SetBool(PH_SR_RUN_FILTER_GROUPS_DBG,true);
bc->SetFloat(PH_SR_MIN_BASELINE_ANGLE,0.1);
bc->SetFloat(PH_SR_OVERALL_AREA_WEIGHT,0.1);
bc->SetFloat(PH_SR_OVERALL_PHOTOMETRIC_WEIGHT,0.1);
bc->SetBool(PH_SR_EXPORT_PARTIAL_SOLVES_DBG,true);
bc->SetInt32(PH_SR_SUBSAMPLING_LEVEL,1);
bc->SetInt32(PH_SR_CELL_SIZE_PIX,1);
bc->SetFloat(PH_SR_NCC_THRESH,0.1);
bc->SetInt32(PH_SR_MIN_NUM_SUPPORT_IMAGES,1);
bc->SetInt32(PH_SR_MAX_FRAME_OFFSET,1);
bc->SetFloat(PH_SR_MAX_BASELINE_ANGLE,0.1);
bc->SetFloat(PH_SR_TEXTURE_DETAIL_THRESHOLD,0.1);
bc->SetBool(PH_SR_STRICT_COMPAT_MODE_DBG,true);
bc->SetBool(PH_SR_RUN_EXPANSION_DBG,true);
bc->SetBool(PH_SR_RUN_FILTER_OUTER_DBG,true);
bc->SetBool(PH_SR_RUN_FILTER_VISIBILITY_DBG,true);
bc->SetBool(PH_SR_RUN_FILTER_SURFACE_DBG,true);
bc->SetFloat(PH_SR_OVERALL_RAY_WEIGHT,0.1);
bc->SetInt32(PH_DEBUG_BUTTON_15,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.PH_FOOTAGE_VIEW_FULL)
c4d.CallButton(obj,c4d.PH_FOOTAGE_MATCH_VIEW_WIDTH)
c4d.CallButton(obj,c4d.PH_FOOTAGE_MATCH_VIEW_HEIGHT)
c4d.CallButton(obj,c4d.PH_CREATE_BACKGROUND_OBJECT)
c4d.CallButton(obj,c4d.PH_2D_TRACK_MANUAL_TRACK_BACKWARD)
c4d.CallButton(obj,c4d.PH_2D_TRACK_MANUAL_TRACK)
c4d.CallButton(obj,c4d.PH_2D_TRACK_MANUAL_TRACK_FORWARD)
c4d.CallButton(obj,c4d.PH_2D_TRACK_AUTO_CREATE_MARKERS)
c4d.CallButton(obj,c4d.PH_2D_TRACK_AUTO_TRACK_BACKWARD)
c4d.CallButton(obj,c4d.PH_2D_TRACK_AUTO_TRACK)
c4d.CallButton(obj,c4d.PH_2D_TRACK_AUTO_TRACK_FORWARD)
c4d.CallButton(obj,c4d.PH_2D_TRACK_AUTO_RESET)
c4d.CallButton(obj,c4d.PH_3D_RECON_HIERARCHICAL_SOLVE_ALL_STAGES)
c4d.CallButton(obj,c4d.PH_SR_RUN_SCENE_RECONSTRUCTION)
c4d.CallButton(obj,c4d.PH_SR_UPDATE_SCENE_MESHING)
c4d.CallButton(obj,c4d.PH_DEBUG_3D_SOLVE_WITHOUT_DEFFERED)
c4d.CallButton(obj,c4d.PH_3D_RECON_SOLVE_DEFERRED)
c4d.CallButton(obj,c4d.PH_OBJECT_SOLVE)
c4d.CallButton(obj,c4d.PH_SELECTED_TRACK_DATA_DUMP_CURR_FRAME)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_10)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_11)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_7)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_14)
c4d.CallButton(obj,c4d.PH_DEBUG_SAVE_PARTIAL_RECONSTRUCTIONS)
c4d.CallButton(obj,c4d.PH_DEBUG_LOAD_PARTIAL_RECONSTRUCTIONS)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_17)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_19)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_18)
c4d.CallButton(obj,c4d.PH_DEBUG_BUTTON_16)
C++
DescriptionCommand dc;
dc.id = DescID(PH_FOOTAGE_VIEW_FULL);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_FOOTAGE_MATCH_VIEW_WIDTH);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_FOOTAGE_MATCH_VIEW_HEIGHT);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_CREATE_BACKGROUND_OBJECT);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_MANUAL_TRACK_BACKWARD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_MANUAL_TRACK);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_MANUAL_TRACK_FORWARD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_AUTO_CREATE_MARKERS);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_AUTO_TRACK_BACKWARD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_AUTO_TRACK);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_AUTO_TRACK_FORWARD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_2D_TRACK_AUTO_RESET);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_3D_RECON_HIERARCHICAL_SOLVE_ALL_STAGES);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_SR_RUN_SCENE_RECONSTRUCTION);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_SR_UPDATE_SCENE_MESHING);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_3D_SOLVE_WITHOUT_DEFFERED);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_3D_RECON_SOLVE_DEFERRED);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_OBJECT_SOLVE);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_SELECTED_TRACK_DATA_DUMP_CURR_FRAME);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_10);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_11);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_7);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_14);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_SAVE_PARTIAL_RECONSTRUCTIONS);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_LOAD_PARTIAL_RECONSTRUCTIONS);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_17);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_19);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_18);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(PH_DEBUG_BUTTON_16);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);