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 ReaFlow 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
getHideGets "hide" status of the object.
setHideSets "hide" status of the object.
getHideToCameraGets "hide to camera" status of the object.
setHideToCameraSets "hide to camera" status of the object.
getHideToReflectionsRefractionsGets "hide to reflections and refractions" status of the object.
setHideToReflectionsRefractionsSets "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.
getProxyDisplayPointsThis function is useful to display a mesh on a viewport.
setColorIDSets the color used by this object in the Object ID render channel.
getColorIDGets the color used by this object in the Object ID render channel.
setGeometryDirtySet the geometry "dirty".
getUserDataInternal use.
setUserDataInternal use.
getVertexesBufferInternal use.
getNormalsBufferInternal use.
getTrianglesBufferInternal use.
initializeMeshClean the mesh and allocates memory for vertexes, normals, triangles and motion blur.
resizeMeshReinitializes all the basic geometry and UV arrays.
generateCustomUVW--TODO--
getUVWChannelPropertiesGets UVW channel properties.
getGlobalXform--TODO--
getGlobalNormalsXform--TODO--
getInverseGlobalXform--TODO--
getInverseGlobalNormalsXform--TODO--
isGeometryLoaderChecks if the object was created by a geometry loader extension.
isGeometryProceduralChecks if the object was created by a procedural geometry extension.
hasGeometryModifiersChecks if the object has geometry modifiers (extensions).
applyGeometryModifierExtension--TODO--
cleanAllGeometryModifierExtensionsClean all geometry modifier extensions applyed to the object.
getGeometryLoaderExtensionParams--TODO--
getGeometryProceturalExtensionParams--TODO--
getGeometryModifierExtensionsNumberGets the number of geometry modifier extensions applied to the object.
getGeometryModifierExtensionParamsAtIndex--TODO--

...

LanguageSyntax
C++Cmaxwell::Cobject getInstanced()
PythonCmaxwellObject getInstanced()

Return value

Cmaxwell::Cobject reference to the instanced object. Null object if the object is not an instance, (Cmaxwell::Cobject::isNull() == true).

Anchor
isrfrk
isrfrk

...

LanguageSyntax
C++byte getReferencedSceneMaterial( const char* objectName, Cmaxwell::Cmaterial& material )
PythonCmaxwellMaterial getReferencedSceneMaterial( str objectName )

...

LanguageSyntax
C++byte setReferencedSceneMaterial( const char* objectName, Cmaxwell::Cmaterial  material )
Pythonint setReferencedSceneMaterial( str objectName, Cmaterial CmaxwellMaterial  material )

Return value

0 = Error setting reference scene file.

...

LanguageSyntax
C++byte mergeMeshes( const Cmaxwell::Cobject* pMeshes, dword nMeshes )
Pythonint mergeMeshes( CmaxwellObject[] meshes )

...

LanguageSyntax
C++byte getMaterial( Cmaxwell::Cmaterial& parent )
PythonCmaxwellMaterial  getMaterial()

Return value

...

LanguageSyntax
C++byte setMaterial( Cmaxwell::Cmaterial material )
Pythonint setMaterial( CmaxwellMaterial  material )

Return value

0 = Error setting object material.

...

LanguageSyntax
C++byte generateSphericalUVW( dword& iChannel, Cbase CbaseT& projectorBase, real& startLatitude, real& endLatitude, real& startLongitude, real& endLongitude )
Pythonint generateSphericalUVW( int iChannel, Cbase projectorBase, float startLatitude, float endLatitude, float startLongitude, float endLongitude )

...

LanguageSyntax
C++byte generateCylindricalUVW( dword& iChannel,  Cbase& projectorBase, real& startAngle, real& endAngle )
Pythonint generateCylindricalUVW( int iChannel,  Cbase projectorBase, float startAngle, float endAngle )

...

LanguageSyntax
C++byte generateCubicUVW( dword& iChannel,  Cbase& projectorBase, bool mirrorBackFaces = false )
Pythonint generateCubicUVW( int iChannel,  Cbase projectorBase, bool mirrorBackFaces = False )

...

LanguageSyntax
C++byte generatePlanarUVW( dword& iChannel,  Cbase& projectorBase )
Pythonint generatePlanarUVW( int iChannel,  Cbase projectorBase )

Return value

...

LanguageSyntax
C++byte getVertex( dword iVertex, dword iPosition, Cpoint& point )
PythonCvector getVertex( int iVertex, int iPosition )

...

0 = Error getting the vertex.

1 = Success.

Python

 Cvector containing  containing the vertex requested.

Anchor
setvertex
setvertex

...

LanguageSyntax
C++byte setVertex( dword iVertex, dword iPosition, const Cpoint& point )
Pythonint setVertex( int iVertex, int iPosition, Cvector point )

Return value

0 = Error setting the vertex.

...

LanguageSyntax
C++byte getNormal( dword iVertex, dword iPosition, Cvector&normal )
PythonCvector getNormal( int iVertex, int iPosition )

...

0 = Error getting the normal.

1 = Success.

Python

Cvector containing  containing the normal requested.

Anchor
setnormal
setnormal

...

LanguageSyntax
C++byte setNormal( dword iNormal, dword iPosition, const Cvector& normal )
Pythonint setNormal( int iNormal, int iPosition, Cvector normal )

Return value

0 = Error setting the normal.

...

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

...

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

Return value

0 = Error setting triangle material.

...

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

...

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

Return value

0 = Error setting triangle group material.

...

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 )

...

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

...

0 = Error getting object base and pivot.

1 = Success.

Python

Object base and pivot axesTuple containing Cbase base and Cbase pivot axes (base,pivot).

Anchor
getworldtransform
getworldtransform

...

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

Return value

...

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

...

LanguageSyntax
C++byte setColorID( const Crgb& color )
Pythonint setColorID( Crgb  color )

Return value

0 = Error setting color ID.

...

LanguageSyntax
C++byte getColorID( Crgb & color )
PythonCrgb  getColorID()

Return value

C++

...

LanguageSyntax
C++byte getUVWChannelProperties( dword iChannel, byte& projType, bool& customProj, Cbase Crgb& projectorBase, real& startLatitude, real& endLatitude, real& startLongitude, real& endLongitude, real& startAngle, real& endAngle, bool& mirrorBackFaces )
Pythondict getUVWChannelProperties( int iChannel )

...

Dictionary containing the UVW channel properties ('projType', 'customProj', 'projectorBase', 'startLatitude', 'endLatutide', 'startLongitude', 'endLongitude', 'startAngle', 'endAngle', 'mirrorBackFaces').

Anchor
getglobalxform
getglobalxform

...

LanguageSyntax
C++byte getGlobalXform( Cbase& xForm )
PythonCbase getGlobalXform()

Return value

...

LanguageSyntax
C++byte getGlobalNormalsXform( Cbase& xForm )
PythonCbase getGlobalNormalsXform()

Return value

...

LanguageSyntax
C++byte getInverseGlobalXform( Cbase& ixForm )
PythonCbase getInverseGlobalXform()

Return value

...

LanguageSyntax
C++byte getInverseGlobalNormalXform( Cbase& ixForm )
PythonCbase getInverseGlobalNormalXform()

...

Number of geometry modifier extensions applied to the object.

...

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

...