Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

...

Note: if you create a new camera and set it as active, its exposure time will not affect the shutter interval for motion blur. That value is determined at the start of the export process, before any callbacks are executed, and cannot be changed later.

Methods

voidDestroy()
voidSetName(const MString& name)
MStringGetName() const
boolSetActive()
boolIsActive() const
boolSetResolution(unsigned int width, unsigned int height)
voidGetResolution(unsigned int& width, unsigned int& height) const
boolSetResolutionWidth(unsigned int width)
unsigned intGetResolutionWidth() const
boolSetResolutionHeight(unsigned int height)
unsigned intGetResolutionHeight() const
boolSetFilmSize(double width, double height)
voidGetFilmSize(double& width, double& height) const
boolSetFilmWidth(double width)
doubleGetFilmWidth() const
boolSetFilmHeight(double height)
doubleGetFilmHeight() const
boolSetPixelAspect(double aspect)
doubleGetPixelAspect() const
boolSetShutterTime(double shutterTime)
doubleGetShutterTime() const
boolSetISO(double iso)
doubleGetISO() const
boolSetFPS(double fps)
doubleGetFPS() const
boolSetDiaphragm(DiaphragmType type, unsigned int numBlades, double angle)
voidGetDiaphragm(DiaphragmType& type, unsigned int& numBlades, double& angle)
boolSetRegion(RegionType type, unsigned int left, unsigned int right, unsigned int top, unsigned int bottom)
voidGetRegion(RegionType& type, unsigned int& left, unsigned int& right, unsigned int& top, unsigned int& bottom) const
boolSetFilmOffset(double horizontalShift, double verticalShift)
voidGetFilmOffset(double& horizontalShift, double& verticalShift) const
boolSetClipDistances(double nearClip, double farClip)
voidGetClipDistances(double& nearClip, double& farClip) const
boolEnableClipping(bool enable)
boolIsClippingEnabled() const
unsigned intGetNumSteps() const
boolSetStep(unsigned int step, const MFloatPoint& position, const MFloatPoint& focusPoint, const MFloatVector& up, double focalLen, double fStop, double timeOffset)
boolGetStep(unsigned int step, MFloatPoint& position, MFloatPoint& focusPoint, MFloatVector& up, double& focalLen, double& fStop, double& timeOffset) const
boolSetStep(unsigned int step, const MPoint& position, const MPoint& focusPoint, const MVector& up, double focalLen, double fStop, double timeOffset)
boolGetStep(unsigned int step, MPoint& position, MPoint& focusPoint, MVector& up, double& focalLen, double& fStop, double& timeOffset) const

...

Enable or disable Z clipping. This method does not exist in Python, where GetClipping can be used instead.

bool IsClippingEnabled() const

Returns the state of the Z clipping feature. This method does not exist in Python, where GetClipping can be used instead.

unsigned int GetNumSteps() const

...

This method does not exist in Python, where GetSteps returns a list of all the steps.

...

Sets the location, focal length and f/stop for the camera at the given motion step. The timeOffset argument represents the fraction of the shutter time at which the step values apply (0 means shutter open, 1 means shutter close). While it is possible to specify any value for this argument, it is recommended to use step / (GetNumSteps() - 1) so that the steps are equally spaced in time. The exporter uses this formula when writing object motion, so using a different set of step times can result in differences between how the camera movement and the object movement is interpolated. This, in turn, can lead to unwanted effects, such as seeing motion blur on an object which is moving with the camera (and should have no blur).

...