Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescription
setPointerInternal use.
Cobject#freeDestroys the object.
getNameGets object name.
setNameSets object name.
isMeshChecks whether the object is a mesh.
isInstanceChecks whether the object is an instance.
getInstancedGets instance's parent.
isRFRKChecks whether the object is a RFRK object.
getRFRKParametersGets ReaFlow RenderKit parameters.
setRFRKParametersSets RealFlow RenderKit parameters.
getReferencedScenePathGets the scene file referenced by this object.
setReferencedScenePathSets the scene file referenced by this object.
getReferencedSceneMaterialGets the material of an specific object inside the referenced scene.
setReferencedSceneMaterialSets the material of an specific object inside the referenced scene.
mergeMeshesMerges an array of meshes into a single mesh. Target object must not be included.
getParentGets the parent object in the hierarchy.
setParentSets the parent object in the hierarchy.
getUuidUnique user ID that can be used for custom purposes.
setUuidSets the unique user ID.
getMaterialGets the material applied.
setMaterialSets the object material.
setPropertiesSets the caustics properties of the object.

getDependencies

Gets all the extern dependencies of the object (rfrk files, etc).
Geometry
getNumVertexesGets number of vertexes of the object.
getNumTrianglesGets number of triangles of the object.
getNumNormalsGets number of the normals of the object.
getNumPositionsPerVertexGets number of positions per vertex of the object.
getNumChannelsUVWGets number of UVW channels of the object.
addChannelUVWAdds an UVW channel to the object.
generateSphericalUVWGenerates spherical UVW coordinates.
generateCylindricalUVWGenerates cylindrical UVW coordinates.
generateCubicUVWGenerates cubic UVW coordinates.
generatePlanarUVWGenerates planar UVW coordinates.
getVertexGets vertex by index.
setVertexSets vertex by index.
getNormalGets normal by index.
setNormalSets normal by index.
getTriangleGets triangle (vertexes and normals) by index.
setTriangleSets triangle (vertexes and normals) by index.
getTriangleGroupGets triangle group by index.
setTriangleGroupSets triangle group.
getTriangleUVWGets triangle UVW coordinates.
setTriangleUVWSets triangle UVW coordinantes.
getTriangleMaterialGets triangle material.
setTriangleMaterialSets triangle material.
getGroupMaterialGets material of a group of triangles.
setGroupMaterialSets material of a group of triangles.
getBaseAndPivotGets base and pivot axes of the object.
setBaseAndPivotSets base and pivot axes of the object.
getWorldTransformReturn the world transform of the object.
getTransformSubstepsCountReturn the number of substeps used for defining Base and Pivot motion blur.
getTransfrormStepInfoByIndexReturn transform information( base, pivot and time) for the given index.
getPositionUsed by Maxwell Studio (not needed for rendering).
setPositionUsed by Maxwell Studio (not needed for rendering).
getRotationUsed by Maxwell Studio (not needed for rendering).
setRotationUsed by Maxwell Studio (not needed for rendering).
getScaleUsed by Maxwell Studio (not needed for rendering).
setScaleUsed by Maxwell Studio (not needed for rendering).
getShearUsed by Maxwell Studio (not needed for rendering).
setShearUsed by Maxwell Studio (not needed for rendering).
getPivotPositionUsed by Maxwell Studio (not needed for rendering).
setPivotPositionUsed by Maxwell Studio (not needed for rendering).
getPivotRotationUsed by Maxwell Studio (not needed for rendering).
setPivotRotationUsed by Maxwell Studio (not needed for rendering).
isPosRotScaleInitializedChecks if the methods above have been used for the given object.
cleanGeometryOptional routine that removes degenerated triangles, repeated/unused vertex and normals.
Display
getHide Gets "hide" status of the object.
setHide Sets "hide" status of the object.
getHideToCamera Gets "hide to camera" status of the object.
setHideToCamera Sets "hide to camera" status of the object.
getHideToReflectionsRefractions Gets "hide to reflections and refractions" status of the object.
setHideToReflectionsRefractions 
getHideToGI 
setHideToGI 
isExcludedOfCutPlanes 
excludeOfCutPlanes Sets "hide to reflections and refractions" status of the object.
getHideToGIGets "hide to global illumination" status of the object.
setHideToGIGets "hide to global illumination" status of the object.
isExcludedOfCutPlanesGets "excluded of cut planes" status of the object.
excludeOfCutPlanesSets "excluded of cut planes" status of the object.
getProxyDisplayPoints 
setColorID 
getColorID 
setGeometryDirty 
getUserData 
setUserData 
getVertexesBuffer 
getNormalsBuffer 
getTrianglesBuffer 
initializeMesh 
resizeMesh 
generateCustomUVW 
getUVWChannelProperties 
getGlobalXform 
getGlobalNormalsXform 
getInverseGlobalXform 
getInverseGlobalNormalsXform 
isGeometryLoader 
isGeometryProcedural 
hasGeometryModifiers 
applyGeometryModifierExtension 
cleanAllGeometryModifierExtensions 
getGeometryLoaderExtensionParams 
getGeometryProceturalExtensionParams 
getGeometryModifierExtensionNumber 
getGeometryModifierExtensionParamsAtIndex 

...

Anchor
settriangleuvw
settriangleuvw

setTriangleUVW

Sets triangle UVW coordinantes

setTriangleUVW

Sets triangle UVW coordinantes.

LanguageSyntax
C++byte setTriangleUVW( dword iTriangle, dword iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3 )
Pythonint setTriangleUVW( int iTriangle, int iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u2, float v2, float w3 )

Return value

0 = Error setting the triangle UVW coordinates.

1 = Success.

Anchor
gettrianglematerial
gettrianglematerial

getTriangleMaterial

Gets triangle material.

LanguageSyntax
C++byte getTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial& material )
PythonCmaxwellMaterial getTriangleMaterial( int iTriangle )

Return value

C++

0 = Error getting triangle material.

1 = Success.

Python

Triangle material.

Anchor
settrianglematerial
settrianglematerial

setTriangleMaterial

Sets the triangle material.

LanguageSyntax
C++byte setTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial material )
Pythonint setTriangleMaterial( int iTriangle, CmaxwellMaterial material )

Return value

0 = Error setting triangle material.

1 = Success.

Anchor
getgroupmaterial
getgroupmaterial

getGroupMaterial

Gets material of a group of triangles.

LanguageSyntax
C++byte getGroupMaterial( dword iGroup, Cmaxwell::Cmaterial& material )
PythonCmaxwellMaterial getGroupMaterial( int iGroup )

Return value

C++

0 = Error getting triangle group material.

1 = Success.

Python

Triangle group material.

Anchor
setgroupmaterial
setgroupmaterial

setGroupMaterial

Sets material of a group of triangles.

LanguageSyntax
C++byte setGroupMaterial( dword iGroup, Cmaxwell::Cmaterial material )
Pythonint setGroupMaterial( int iGroup, CmaxwellMaterial material )

Return value

0 = Error setting triangle group material.

1 = Success.

Anchor
setbaseandpivot
setbaseandpivot

setBaseAndPivot

Sets base and pivot axes of the object.

LanguageSyntax
C++byte setBaseAndPivot( Cbase base, Cbase pivot, real substepTime = 0.0 )
Pythonint setBaseAndPivot( Cbase base, Cbase pivot, float substepTime = 0.0 )

Return value

0 = Error setting object base and pivot.

1 = Success.

Anchor
getbaseandpivot
getbaseandpivot

getBaseAndPivot

Gets base and pivot axes of the object.

LanguageSyntax
C++byte getBaseAndPivot( Cbase& base, Cbase& pivot, const real substepTime = 0.0 )
Pythontuple getBaseAndPivot( float substepTime = 0.0 )

Return value

C++

0 = Error getting object base and pivot.

1 = Success.

Python

Object base and pivot axes.

Anchor
getworldtransform
getworldtransform

getWorldTransform

Returns the world transform of the object taking into account base and pivot of all its parents..

LanguageSyntax
C++byte getWorldTransform( Cbase& base )
PythonCbase getWorldTransform()

Return value

C++

0 = Error getting world transform of the object.

1 = Success.

Python

Object world transform.

Anchor
gettransformsubstepscount
gettransformsubstepscount

getTransfromSubstepsCount

Return the number of substeps used for defining Base and Pivot motion blur.

LanguageSyntax
C++dword getTransformSubstepsCount()
Pythonint getTransformSubstepsCount()

Anchor
gettransformstepinfobyindex
gettransformstepinfobyindex

getTransformStepInfoByIndex

Return transform information( base, pivot and time) for the given index.

LanguageSyntax
C++byte getTransformStepInfoByIndex( Cbase& base, Cbase& pivot, real& time, const dword index )
Pythondict getTransformStepInfoByIndex( int index )

Return value

C++

0 = Error getting transform information of the object.

1 = Success.

Python

Dictionary containing transform information ('base','pivot','time').

 

Anchor
isposrotscaleinitialized
isposrotscaleinitialized

isPosRotScaleInitialized

Checks if any of the following methods have been used for the object: setPosition, setRotation, setScale, setShear, setPivotPosition and setPivotRotation. The correct way to transform the object is through the setBaseAndPivot method.

LanguageSyntax
C++byte isPosRotScaleInitialized( bool& init )
Pythonbool isPosRotScaleInitialized()

Return value

C++

0 = Error getting object transformed for Maxwell Studio.

1 = Success.

Python

True = object initialized using setPosition, setRotation, setScale, setShear, setPivotPosition and/or setPivotRotation (methods used for Maxwell Studio, not for rendering.

Anchor
cleangeometry
cleangeometry

cleanGeometry

Optional routine that removes degenerated triangles, repeated/unused vertex and normals. This function is automatically called inside the writeMXS method. It is not needed to call it except in scenarios like the interactive engine.

LanguageSyntax
C++byte setTriangleUVW( dword iTriangle, dword iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3 cleanGeometry()
Pythonint setTriangleUVW( int iTriangle, int iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u2, float v2, float w3 cleanGeometry()

Return value

0 = Error setting the triangle UVW coordinatescleaning geometry.

1 = Success.

Anchor
gettrianglematerialgethidegettrianglematerial
gethide

...

getHide

Gets triangle material"hide" status of the object.

LanguageSyntax
C++byte getTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial& material getHide( bool& hide )
PythonCmaxwellMaterial getTriangleMaterialbool getHide( int iTriangle )

Return value

C++

0 = Error getting triangle material"hide" status.

1 = Success.

Python

Triangle materialTrue = object is hidden.

False = object is not hidden.

Anchor
settrianglematerialsethidesettrianglematerial
sethide

...

setHide

Sets the triangle material"hide" status of the object.

LanguageSyntax
C++byte setTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial material setHide( bool hide )
Pythonint setTriangleMaterial( int iTriangle, CmaxwellMaterial material setHide( bool hide )

Return value

0 = Error setting triangle material"hide" state.

1 = Success.

Anchor
getgroupmaterialgethidetocameragetgroupmaterial
gethidetocamera

...

getHideToCamera

Gets material of a group of triangles"hide to camera" status of the object.

LanguageSyntax
C++byte getGroupMaterial( dword iGroup, Cmaxwell::Cmaterial& material getHideToCamera( bool& hide )
PythonCmaxwellMaterial getGroupMaterialbool getHide( int iGroup )

Return value

C++

0 = Error getting triangle group material"hide to camera" status.

1 = Success.

Python

Triangle group materialTrue = object is hidden to camera.

False = object is not hidden to camera.

Anchor
setgroupmaterialsethidetocamerasetgroupmaterial
sethidetocamera

...

setHideToCamera

Sets material of a group of triangles"hide to camera" status of the object.

LanguageSyntax
C++byte setGroupMaterial( dword iGroup, Cmaxwell::Cmaterial material setHideToCamera( bool hide )
Pythonint setGroupMaterial( int iGroup, CmaxwellMaterial material setHideToCamera( bool hide )

Return value

0 = Error setting triangle group material"hide to camera" state.

1 = Success.

Anchor
setbaseandpivotgethidetoreflectionsrefractionssetbaseandpivot
gethidetoreflectionsrefractions

setBaseAndPivot

...

getHideToReflectionsRefractions

Gets "hide to reflections and refractions" status of the object.

LanguageSyntax
C++byte setBaseAndPivot( Cbase base, Cbase pivot, real substepTime = 0.0 getHideToReflectionsRefractions( bool& hide )
Pythonint setBaseAndPivot( Cbase base, Cbase pivot, float substepTime = 0.0 bool getHideToReflectionsRefractions()

Return value

C++

0 = Error

...

getting "hide to reflections and refractions" status.

1 = Success.

Python

True = object is hidden to reflections and refractions.

False = object is not hidden to reflections and refractions.

Anchor
getbaseandpivotsethidetoreflectionsrefractionsgetbaseandpivot
sethidetoreflectionsrefractions

getBaseAndPivot

...

setHideToReflectionsRefractions

Sets "hide to reflections and refractions" status of the object.

LanguageSyntax
C++byte getBaseAndPivot( Cbase& base, Cbase& pivot, const real substepTime = 0.0 setHideToReflectionsRefractions( bool hide )
Pythontuple getBaseAndPivot( float substepTime = 0.0 int setHideToReflectionsRefractions( bool hide )

Return value

...

C++

0 = Error

...

setting "hide to reflections and refractions" state.

1 = Success

...

Python

...

.

Anchor
getworldtransformgethidetogigetworldtransform
gethidetogi

getWorldTransform

...

getHideToReflectionsRefractions

Gets "hide to global illumination" status of the object.

LanguageSyntax
C++byte getWorldTransformgetHideToGI( Cbasebool& base hide )
PythonCbase getWorldTransformbool getHideToGI()

Return value

C++

0 = Error getting world transform of the object"hide to global illumination" status.

1 = Success.

Python

Object world transform.

...

getTransfromSubstepsCount

Return the number of substeps used for defining Base and Pivot motion blur.

LanguageSyntax
C++dword getTransformSubstepsCount()
Pythonint getTransformSubstepsCount()

...

getTransformStepInfoByIndex

...

True = object is hidden to global illumination.

False = object is not hidden to global illumination.

Anchor
sethidetogi
sethidetogi

setHideToGI

Sets "hide to global Illumination" status of the object.

LanguageSyntax
C++byte getTransformStepInfoByIndex( Cbase& base, Cbase& pivot, real& time, const dword index setHideToGI( bool hide )
Pythondict getTransformStepInfoByIndex( int index int setHideToGI( bool hide )

Return value

...

C++

0 = Error

...

setting "hide to global illumination" state.

1 = Success.

Python

Dictionary containing transform information ('base','pivot','time').

 

Anchor
isposrotscaleinitializedisexcludedofcutplanesisposrotscaleinitialized
isexcludedofcutplanes

isPosRotScaleInitialized

...

isExcludedOfCutPlanes

Gets "excluded of cut planes" status of the object.

LanguageSyntax
C++byte isPosRotScaleInitializedisExcludedOfCutPlanes( bool& init excluded )
Pythonbool isPosRotScaleInitialized isExcludedOfCutPlanes()

Return value

C++

0 = Error getting object transformed for Maxwell Studio"excluded of cut planes" status.

1 = Success.

Python

True = object initialized using setPosition, setRotation, setScale, setShear, setPivotPosition and/or setPivotRotation (methods used for Maxwell Studio, not for renderingis excluded to cut planes.

False = object is not excluded of cut planes.

Optional routine that removes degenerated triangles, repeated/unused vertex and normals. This function is automatically called inside the writeMXS method. It is not needed to call it except in scenarios like the interactive engine

Anchor
cleangeometrycleangeometry

cleanGeometry

excludeofcutplanes
excludeofcutplanes

excludeOfCutPlanes

Sets "excluded of cut planes" status of the object.

LanguageSyntax
C++byte cleanGeometryexcludeOfCutPlanes( bool exclude )
Pythonint cleanGeometry excludeOfCutPlanes( bool exclude )

Return value

0 = Error cleaning geometrysetting "excluded of cut planes" state.

1 = Success.