PFTrack Documentation Python Macro API  

Camera Solver Node API (PyCameraSolver class)

This is the class for manipulating Camera Solver nodes in the tracking tree. This class inherits from the generic PyNode class.

void solveAll() - runs the camera solver - equivalent to pressing the "Solve All" button in the GUI.

float getFocalLength() - returns the camera focal length (defined in the currently selected units).

void setFocalLength(float) - sets the camera's focal length to the specified value (defined in the currently selected units).

int getFocalLengthUnits() - returns the camera's focal length units as an integer where the values is:

void setFocalLengthUnits(int) - sets the camera's focal length units to the specified value.

int getFocalLengthType() - returns the camera's focal length type as an integer where the values is:

void setFocalLengthType(int) - sets the camera's focal length type to the specified value.

float getFocalRangeMin() - returns the minimal allowable camera focal length.

void setFocalRangeMin(float) - sets the minimal allowable camera focal length to the specified value.

float getFocalRangeMax() - returns the maximum allowable camera focal length.

void setFocalRangeMax(float) - sets the maximum allowable camera focal length to the specified value.

int getVariableFocal() - returns whether the camera has a variable focal length where the value is 1=yes, 0=no.

void setVariableFocal(int) - sets whether the camera has a variable focal length to the specifed value.

int getTranslationSmoothing() - returns the translation smoothing as an integer where the value is:

void setTranslationSmoothing(int) - sets the translation smoothing to the specified value.

int getRotationSmoothing() - returns the rotation smoothing as an integer where the value is:

void setRotationSmoothing(int) - sets the rotation smoothing to the specified value.

int getFocalSmoothing() - returns the focal length smoothing as an integer where the value is:

void setFocalSmoothing(int) - sets the focal length smoothing to the specified value.

int getTranslationConstraint() - returns the translation constraint as an integer where the value is:

void setTranslationConstraint(int) - sets the translation constraint to the specified value.

int getRotationConstraint() - returns the rotation constraint as an integer where the value is:

void setRotationConstraint(int) - sets the rotation constraint to the specified value.

int getLockRoll() - returns whether the camera roll is locked around the principle axis where the value is 1=yes, 0=no.

void setLockRoll(int) - sets whether the camera roll is locked around the principle axis to the specified value.