Camera Solver Node API (PyCameraSolve 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:
- 0= Pixels
- 1= Millimeters
- 2= Inches
- 3= Centimeters
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:
- 0= Known
- 1= Initialised
- 2= Unknown
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:
- 0= No smooth
- 1= Low smooth
- 2= Mid. smooth
- 3= High smooth
void setTranslationSmoothing(int)
- sets the translation smoothing to the specified value.
int getRotationSmoothing()
- returns the rotation smoothing as an integer where the value is:
- 0= No smooth
- 1= Low smooth
- 2= Mid. smooth
- 3= High smooth
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:
- 0= No smooth
- 1= Low smooth
- 2= Mid. smooth
- 3= High smooth
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:
- 0= None
- 1= Off-Center
- 2= Small
- 3= Normal
void setTranslationConstraint(int)
- sets the translation constraint to the specified value.
int getRotationConstraint()
- returns the rotation constraint as an integer where the value is:
- 0= None
- 1= Normal
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.