Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Citerator

Methods

NameDescription
setStepSets the camera parameters that can change in an animation.
getStepGets the camera parameteres that can change in an animation.
setOrthoValuesTODOSets orthographic camera values.
getOrthoValuesTODOGets orthographic camera values.
getValuesGets the camera parameters that cannot change in an animation.
setNameSets camera name.
getNameGets camera name.
setResolutionSets camera resolution.
getResolutionGets camera resolution.
setPixelAspectSets camera pixel aspect.
getPixelAspectGets camera pixel aspect.
setShutterSets camera shutter.
getShutterGets camera shutter.
setIsoSets camera ISO.
getIsoGets camera ISO.
setFilmSizeSets camera film size.
getFilmSizeGets camera film size.
setDiaphragmSets camera diaphragm.
getDiaphragmGets camera diaphragm.
setFPSSets camera FPS.
getFPSGets camera FPS.
setScreenRegionDefines a render region for the camera.
getScreenRegionGets render region defined.
setCutPlanesSets camera cut planes.
getCutPlanesGets camera cut planes.
setShiftLensSets camera shift lens.
getShiftLensGets camera shift lens.
setCustomBokehDefines a custom bokeh.
getCustomBokehGets custom bokeh parameters.
setHideSets camera hidden status.
isHideGets camera hidden status.
setUuidSets camera unique ID. For custom purposes.
getUuidGets camera unique ID. For custom purposes.
setUserData Internal use.
getUserData Internal use.
setActiveSets the active camera in case the scene have more than one.
setDirty Internal use.
isDirty Internal use.
freeDestroys the camera.

Inherited methods

NameDescription
isNullChecks whether the object is null.

...

TypeNameIn/OutDescription
dwordiStepinStep number.
CpointorigininCamera position.
CpointfocalPointinCamera focus point.
CvectorupinCamera up vector.
realfocalLenghtfocalLengthinCamera focal lenght length (mm).
realfStopinCamera f-Stop.
bytefocalLenghtNeedCorrectionfocalLengthNeedCorrectioninIndicates wheter focal lenght length needs correction. Default value: 1 (true).

...

LanguageSyntax
C++byte getStep( dword iStep, Cpoint& origin, Cpoint& focalPoint, Cvector& up, real& focalLength, real& fStop )
Python[ (Cvector ' origin', Cvector ' focalPoint', Cvector ' up', float ' focalLength', float ' fStop'] ) getStep( int step )

Parameters

TypeNameIn/OutDescription
dwordiStepinStep requested.
CpointoriginoutCamera position.
CpointfocalPointoutCamera target.
CvectorupoutCamera up vector.
realfocalLenghtfocalLengthoutCamera focal lenght length (mm).
realfStopoutCamera f-Stop.

...

0 = Error getting camera step values.

1 = Success.

Python

Tuple containing the camera parameters requested.

Anchor
setorthovalues
setorthovalues

setOrthoValues

 

...

Sets orthographic camera values. Cmaxwell::addCamera() was called with one of the following values for projectionType: 1 (front), 2 (top), 3 (left), 4 (back), 5 (bottom), or 6 (right).

LanguageSyntax
C++byte setOrthoValues( dword iStep, real orthoX, real orthoY, real orthoZoom, real focalLength, real fStop )
Pythonint setOrthoValues( int iStep, float orthoX, float orthoY, float orthoZoom, float focalLength, float fStop )

...

TypeNameIn/OutDescription
dwordiStepinCamera step to be set.
realorthoXin Camera position.
realorthoYin Camera position.
realorthoZoomin Camera zoom.
realfocalLenghtfocalLengthinCamera focal lenghtlength.
realfStopinCamera f-Stop.

...

Anchor
getorthovalues
getorthovalues

getOrthoValues

 

...

Sets orthographic camera values. Cmaxwell::addCamera() was called with one of the following values for projectionType: 1 (front), 2 (top), 3 (left), 4 (back), 5 (bottom), or 6 (right).

LanguageSyntax
C++byte getOrthoValues( dword iStep, real& orthoX, real& orthoY, real& orthoZoom, real& focalLength, real& fStop )
Python[ (float ' orthoX', float ' orthoY', float ' ortoZoom', float 'focalLenght'focalLength, float ' fStop' ] ) getOrthoValues( int iStep )

...

TypeNameIn/OutDescription
dwordiStepinCamera step requested.
realorthoXout Camera position.
realorthoYout Camera position.
realorthoZoomout Camera zoom.
realfocalLenghtfocalLengthoutCamera focal lenghtlength.
realfStopoutCamera f-Stop.

Return value

C++

0 = Error getting ortho values.

1 = Success.


Python

Tuple containing the camera parameters requested.

Anchor
getvalues
getvalues

getValues

...

TypeNameIn/OutDescription
dwordnStepsoutNumber of steps.
realshutteroutCamera shutter (1/s).
realfilmWidthoutCamera film width (mm).
realfilmHeightoutCamera film height (mm).
realisooutCamera ISO.
const char**pDiaphragmTypeoutDiaphragm type. Possible values: "CIRCULAR" and "POLYGONAL".
realangleoutShutter angle. --TODO--
dwordnBladesoutNumber of diaphragm blades if pDiaphragmType is "POLYGONAL".
dwordfpsoutFrames per second.
dwordxResoutResolution output width.
dwordyResoutResolution output height.
realpixelAspectoutPixel aspect ratio.
byteprojectionTypeoutCamera projection type. 0 (perspective, default), 1 (front), 2 (top), 3 (left), 4 (back), 5 (bottom), 6 (right).

...

LanguageSyntax
C++byte getResolution( dword& xRes, dword& yRes)
Python(x,y) getResolution()

Return value

C++

0 = Error getting camera resolution.

1 = Success.

Python

(x,y) = Tuple containing width and height.

...

LanguageSyntax
C++byte getPixelAspect( real& pixelAspect)
Pythonfloat getPixelAspect()

Return value

C++

0 = Error getting pixel aspect.

1 = Success.

Python

Pixel aspect.

Anchor
setshutter
setshutter

setShutter

Sets camera shutter.

LanguageSyntax
C++byte setShutter( real shutter )
Pythonint setShutter( float shutter )

...

Anchor
getshutter
getshutter

getShutter

Gets camera shutter.

LanguageSyntax
C++byte getShutter( real& shutter )
Pythonfloat getShutter()

Return value

C++

0 = Error getting shutter.

1 = Success.

Python

Shutter.

Anchor
setfilmsizesetisosetfilmsize
setiso

...

setIso

Sets camera film size ( 0.001 - 10000.0 meters ). Default = 0.035 x 0.024.

...

ISO.

setFilmSize filmWidth, float filmHeight
LanguageSyntax
C++byte setIso( real iso )
Pythonint
setIso( float
iso )

Return value

0 = Error setting film sizeISO.

1 = Success.

Anchor
getfilmsizegetisogetfilmsize
getiso

...

getIso

Gets camera film size ISO.

getFilmSize filmWidth, real& filmHeight (x,y) getFilmSize()
LanguageSyntax
C++byte
getIso( real&
iso )
Python
float getIso()

Return value

C++

0 = Error getting camera film sizeISO.

1 = Success.

Python

(x,y) = Tuple containing width and heightISO.

Anchor
setdiaphragmsetfilmsizesetdiaphragm
setfilmsize

...

setFilmSize

Sets camera diaphragmfilm size ( 0.001 - 10000.0 meters ). Default = 0.035 x 0.024.

LanguageSyntax
C++byte setDiaphragmsetFilmSize( const char* pDiaphragmType, real anglefilmWidth, dword nBlades real filmHeight )
Pythonint setDiaphgragmsetFilmSize( str pDiaphgragmTypefloat filmWidth, float angle, int nBlades filmHeight)

Parameters

TypeNameIn/OutDescription
const char*pDiaphragmTypeinDiaphgragm type. Must be one of the following values: "CIRCULAR" or "POLYGONAL".
realangleinDiaphgragm angle.
dwordnBladesinNumber of blades (of "POLYGONAL" diaphragm).

Return value

...

Return value

0 = Error setting film size.

1 = Success.

Anchor
getfilmsize
getfilmsize

getFilmSize

Gets camera film size.

LanguageSyntax
C++byte getFilmSize( real& filmWidth, real& filmHeight )
Python(x,y) getFilmSize()

Return value

C++

0 = Error getting camera film size.

1 = Success.

Python

(x,y) = Tuple containing width and height.

Anchor
getdiaphragmsetdiaphragmgetdiaphragm
setdiaphragm

...

setDiaphragm

Gets Sets camera diaphragm.

[ str 'type' '' '' ] getDiaphragm(
LanguageSyntax
C++byte getDiaphragmsetDiaphragm( const char** pDiaphragmType, real & angle, dword & nBlades )
Pythonint setDiaphgragm( str pDiaphgragmType, float angle, int nBlades )

Parameters

out Can outout (if )
TypeNameIn/OutDescription
const char*pDiaphragmType
inDiaphgragm type.
Must be one of the following values: "CIRCULAR" or "POLYGONAL".
realangle
inDiaphgragm angle of "POLYGONAL" diaphragm. If pDiaphragmType is not "POLYGONAL", angle is set to 0.0.
dwordnBlades
inNumber of blades
of "POLYGONAL" diaphragm
. If pDiaphragmType is not "POLYGONAL", nBlades is set to 0.

Return value

C++

...

0 = Error

...

setting camera

...

diaphgragm.

1 = Success.

Anchor
setscreenregiongetdiaphragmsetscreenregion
getdiaphragm

setScreenRegion

...

getDiaphragm

Gets camera diaphragm.

int setScreenRegion int x1, int y1, int x2, int y2, str pRegionType
LanguageSyntax
C++byte setScreenRegion( dword x1, dword y1, dword x2, dword y2, const char* pRegionType getDiaphragm( const char** pDiaphragmType, real& angle, dword& nBlades )
Python(str type, float angle, int nBlades) getDiaphragm()

Parameters

dwordx1
TypeNameIn/OutDescription
const char*
pDiaphragmType
inX-axis up-left edge of the region (in pixels)
dwordy1inY-axis up-left edge of the region (in pixels)
dwordx2inX-axis down-right edge of the region (in pixels)
dwordy2inY-axis down-right edge of the region (in pixels)
const char*pRegionTypeinRegion type. Must be one of the following values: "REGION" or "BLOW UP".

Return value

...

outDiaphgragm type. Can be one of the following values: "CIRCULAR" or "POLYGONAL".
realangleoutDiaphgragm angle of "POLYGONAL" diaphragm. If pDiaphragmType is not "POLYGONAL", angle is 0.0.
dwordnBladesoutNumber of blades of "POLYGONAL" diaphragm. If pDiaphragmType is not "POLYGONAL", nBlades is 0.

Return value

C++

0 = Error getting camera diaphragm.

1 = Success.


Python

Tuple containing the requested diaphragm parameters.

Anchor
setfps
setfps

setFPS

Sets camera FPS.

LanguageSyntax
C++byte setFPS( real fps)
Pythonint setFPS( float fps )

Return value

0 = Error setting FPS.

1 = Success.

Anchor
getfps
getfps

getFPS

Gets camera FPS.

LanguageSyntax
C++byte getFPS( real& fps )
Pythonfloat getFPS()

Return value

C++

0 = Error getting FPS.

1 = Success.

Python

FPS.

Anchor
setscreenregion
setscreenregion

setScreenRegion

Defines a render region for the camera.

LanguageSyntax
C++byte setScreenRegion( dword x1, dword y1, dword x2, dword y2, const char* pRegionType )
Pythonint setScreenRegion( int x1, int y1, int x2, int y2, str pRegionType )

Parameters

TypeNameIn/OutDescription
dwordx1inX-axis up-left edge of the region (in pixels)
dwordy1inY-axis up-left edge of the region (in pixels)
dwordx2inX-axis down-right edge of the region (in pixels)
dwordy2inY-axis down-right edge of the region (in pixels)
const char*pRegionTypeinRegion type. Must be one of the following values: "REGION" or "BLOW UP".

Return value

0 = Error setting screen region.

1 = Success.

Anchor
getscreenregion
getscreenregion

getScreenRegion

Gets the render screen region of the camera.

LanguageSyntax
C++byte getScreenRegion( dword& x1, dword& y1, dword& x2, dword& y2, char* pType )
Python(int x1, int y1, int x2, int y2, str type) getScreenRegion()

Parameters

TypeNameIn/OutDescription
dwordx1outX-axis up-left edge of the region (in pixels)
dwordy1outY-axis up-left edge of the region (in pixels)
dwordx2outX-axis down-right edge of the region (in pixels)
dwordy2outY-axis down-right edge of the region (in pixels)
const char*pRegionTypeoutRegion type. Must be one of the following values: "REGION" or "BLOW UP".

Return value

C++

0 = Error getting screen region.

1 = Success.


Python

Tuple containing the screen region values.

Anchor
setcutplanes
setcutplanes

setCutPlanes

Sets camera cut planes.

LanguageSyntax
C++byte setCutPlanes( real zNear, real zFar, bool enabled )
Pythonint setCutPlanes( float zNear, float zFar, bool enabled )

Return value

0 = Error setting camera cut planes.

1 = Success.

Anchor
getcutplanes
getcutplanes

getCutPlanes

Gets camera cut planes.

LanguageSyntax
C++byte getCutPlanes( real& zNear, real& zFar, bool& enabled )
Python(float zNear, float zFar, float enabled) getCutPlanes()

Return value

C++

0 = Error getting camera cut planes.

1 = Success.

Python

Tuple containing the "cut planes" values.

Anchor
setshiftlens
setshiftlens

setShiftLens

Sets camera cut planes.

LanguageSyntax
C++byte setShiftLens( real xShift, real yShift )
Pythonint setShiftLens( float xShift, float yShift )

Return value

0 = Error setting camera shift lens.

1 = Success.

Anchor
getshiftlens
getshiftlens

getShiftLens

Gets camera shift lens.

LanguageSyntax
C++byte getShiftLens( real& xShift, real& yShift )
Python(float xShift, float yShift) getShiftLens()

Return value

C++

0 = Error getting camera shift lens.

1 = Success.

Python

Tuple containing "xShift" and "yShift".

Anchor
setcustombokeh
setcustombokeh

setCustomBokeh

Defines a custom bokeh.

LanguageSyntax
C++byte setCustomBokeh( const real& ratio, const real& angle, bool enabled )
Pythonint setCustomBokeh( float ratio, float angle, bool enabled )

Return Value

0 = Error

1 = Success

Anchor
getcustombokeh
getcustombokeh

getCustomBokeh

Gets custom bokeh parameters.

LanguageSyntax
C++byte getCustomBokeh( real& ratio, real& angle, bool& enabled )
Python(float ratio, float angle, bool enabled, int success) getCustomBokeh()

Return Value

C++

0 = Error

1 = Success

Python

Tuple containing custom bokeh parameters and function success value.

Anchor
sethide
sethide

setHide

Sets camera hidden status.

LanguageSyntax
C++byte setHide( bool hide )
Pythonint setHide( bool hide )

Return value

0 = Error getting camera shift lens.

1 = Success.

Anchor
ishide
ishide

isHide

Gets camera hidden status.

LanguageSyntax
C++byte isHide( bool& hide )
Pythonbool isHide()

Return value

C++

0 = Error getting camera shift lens.

1 = Success.

Python

Hidden status.

Anchor
setuuid
setuuid

setUuid

Sets camera unique ID. For custom purposes.

LanguageSyntax
C++byte setUuid( const char* pUuid )
Pythonint setUuid( str uuid )

Return value

0 = Error getting camera shift lens.

1 = Success.

Anchor
getscreenregiongetuuidgetscreenregion
getuuid

...

getUuid

Gets the render screen region of the camera.

LanguageSyntax
C++byte getScreenRegion( dword& x1, dword& y1, dword& x2, dword& y2, char* pType )
Python[ int 'x1', int 'y1', int 'x2', int 'y2', str 'type' ] getScreenRegion()

Parameters

TypeNameIn/OutDescription
dwordx1outX-axis up-left edge of the region (in pixels)
dwordy1outY-axis up-left edge of the region (in pixels)
dwordx2outX-axis down-right edge of the region (in pixels)
dwordy2outY-axis down-right edge of the region (in pixels)
const char*pRegionTypeoutRegion type. Must be one of the following values: "REGION" or "BLOW UP".

Return value

C++

0 = Error setting screen region.

...

camera unique ID. For custom purposes.

LanguageSyntax
C++const char* getUuid()
Pythonstr getUuid()

Return value

String containing the camera unique ID.

Anchor
setactive
setactive

setActive

Sets the active camera used when rendering when there is more than one.

LanguageSyntax
C++byte setActive()
Pythonint setActive()

Return value

0 = Error setting active.

1 = Success.

Anchor
free
free

free

Destroys the camera.

LanguageSyntax
C++byte free()
Pythonint free()

Return value

0 = Error destroying the camera.

1 = Success.