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
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.
getProxyDisplayPoints This function is useful to display a mesh on a viewport.
setColorID Sets the color used by this object in the Object ID render channel.
getColorID Gets the color used by this object in the Object ID render channel.
setGeometryDirty Set the geometry "dirty".
getUserData Internal use.
setUserData Internal use.
getVertexesBuffer Internal use.
getNormalsBuffer Internal use.
getTrianglesBuffer Internal use.
initializeMesh Clean the mesh and allocates memory for vertexes, normals, triangles and motion blur.
resizeMesh Reinitializes all the basic geometry and UV arrays.
generateCustomUVW 
getUVWChannelProperties 
getGlobalXform 
getGlobalNormalsXform 
getInverseGlobalXform 
getInverseGlobalNormalsXform 
isGeometryLoader 
isGeometryProcedural 
hasGeometryModifiers 
applyGeometryModifierExtension --TODO--
cleanAllGeometryModifierExtensions 
getGeometryLoaderExtensionParams --TODO--
getGeometryProceturalExtensionParams --TODO--
getGeometryModifierExtensionNumber 
getGeometryModifierExtensionParamsAtIndex --TODO--

Anchor
free
free

free

Destroys the object.

...

Anchor
gethidetogi
gethidetogi

...

getHideToGI

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

...

True = object is excluded to cut planes.

False = object is not excluded of cut planes.

...

excludeOfCutPlanes

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

cut planes.

False = object is not excluded of cut planes.

Anchor
excludeofcutplanes
excludeofcutplanes

excludeOfCutPlanes

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

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

Return value

0 = Error setting "excluded of cut planes" state.

1 = Success.

Anchor
getproxydisplaypoints
getproxydisplaypoints

getProxyDisplayPoints

This function is useful to display a mesh on a viewport. Returns an array with the vertices of the object in object space. This function is not accurate but should be used for preview purposes only.

LanguageSyntax
C++float* getProxyDisplayPoints( const dword& percent, const dword& maxPoints, dword& nPoints )
Pythonarray getProxyDisplayPoints( int percent, int maxPoints )

Parameters

TypeNameIn/OutDescription
const dword&percentinPercent of points of the mesh that will be returned.
const dword&maxPointsin

Maximum number of points that will be in the returned array (-1 means there is not a maximum fixed)

dword&nPointsoutNumber of points returned.

Return value

C++

Array of nPoints * 3 containing the proxy points requested.

Python

NumPy array containing  the proxy points requested. Shape is (nPoints,3).

Anchor
setcolorid
setcolorid

setColorID

Sets the color used by this object in the Object ID render channel. RGB values must always be in the 0-1 range.

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

Return value

0 = Error setting color ID.

1 = Success.

Anchor
getcolorid
getcolorid

getColorID

Gets the color used by this object in the Object ID render channel.

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

Return value

C++

0 = Error getting the color ID.

1 = Success.

Python

Crgb containing the color ID.

Anchor
setgeometrydirty
setgeometrydirty

setGeometryDirty

Method used to recalculate structures needed in interactive mode when the object changes. It is not needed to call it if the UVs or material change, but just should be called when the mesh or base change.

LanguageSyntax
C++byte setGeometryDirty()
Pythonint setGeometryDirty()

Return value

0 = Error setting geometry dirty.

1 = Success.

Anchor
initializemesh
initializemesh

initializeMesh

Clean the mesh and allocates memory for vertexes, normals, triangles and motion blur.

LanguageSyntax
C++byte initializeMesh( dword nVertex, dword nNormals, dword nFaces, dword positionsPerVertex )
Pythonint initializeMesh( int nVertex, int nNormals, int nFaces, int positionsPerVertex )

Return value

0 = Error initializing mesh.

1 = Success.

Anchor
resizemesh
resizemesh

resizeMesh

This function reinitializes all the basic geometry and UV arrays. The number of UV channels and their ids remain the same, but UV´s are zeroed. Motion blur vertices can be wiped (if there were) setting newNpositionsPerVertex = 1, or added (if there weren´t) setting newNpositionsPerVertex = 2.

LanguageSyntax
C++byte excludeOfCutPlanes( bool exclude resizeMesh( dword newNVertex, dword newNNormals, dword newNFaces, dword newNpositionsPerVertex )
Pythonint excludeOfCutPlanes( bool exclude resizeMesh( int newNVertex, int newNNormals, int newNFaces, int newNpositionsPerVertex )

Return value

0 = Error setting "excluded of cut planes" stateresizing mesh.

1 = Success.