MaxwellMayaCamera class

MaxwellMayaCamera class

Description

This class allows you to manipulate camera settings in Maxwell. You can create new cameras by using the MaxwellMayaAPI::CreateCamera method.

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

void

Destroy()

void

SetName(const MString& name)

MString

GetName() const

bool

SetActive()

bool

IsActive() const

bool

SetResolution(unsigned int width, unsigned int height)

void

GetResolution(unsigned int& width, unsigned int& height) const

bool

SetResolutionWidth(unsigned int width)

unsigned int

GetResolutionWidth() const

bool

SetResolutionHeight(unsigned int height)

unsigned int

GetResolutionHeight() const

bool

SetFilmSize(double width, double height)

void

GetFilmSize(double& width, double& height) const

bool

SetFilmWidth(double width)

double

GetFilmWidth() const

bool

SetFilmHeight(double height)

double

GetFilmHeight() const

bool

SetPixelAspect(double aspect)

double

GetPixelAspect() const

bool

SetShutterTime(double shutterTime)

double

GetShutterTime() const

bool

SetISO(double iso)

double

GetISO() const

bool

SetFPS(double fps)

double

GetFPS() const

bool

SetDiaphragm(DiaphragmType type, unsigned int numBlades, double angle)

void

GetDiaphragm(DiaphragmType& type, unsigned int& numBlades, double& angle)

bool

SetRegion(RegionType type, unsigned int left, unsigned int right, unsigned int top, unsigned int bottom)

void

GetRegion(RegionType& type, unsigned int& left, unsigned int& right, unsigned int& top, unsigned int& bottom) const

bool

SetFilmOffset(double horizontalShift, double verticalShift)

void

GetFilmOffset(double& horizontalShift, double& verticalShift) const

bool

SetClipDistances(double nearClip, double farClip)

void

GetClipDistances(double& nearClip, double& farClip) const

bool

EnableClipping(bool enable)

bool

IsClippingEnabled() const

unsigned int

GetNumSteps() const

bool

SetStep(unsigned int step, const MFloatPoint& position, const MFloatPoint& focusPoint, const MFloatVector& up, double focalLen, double fStop, double timeOffset)

bool

GetStep(unsigned int step, MFloatPoint& position, MFloatPoint& focusPoint, MFloatVector& up, double& focalLen, double& fStop, double& timeOffset) const

bool

SetStep(unsigned int step, const MPoint& position, const MPoint& focusPoint, const MVector& up, double focalLen, double fStop, double timeOffset)

bool

GetStep(unsigned int step, MPoint& position, MPoint& focusPoint, MVector& up, double& focalLen, double& fStop, double& timeOffset) const