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.
getParent Gets the parent object in the hierarchy.
setParent Sets the parent object in the hierarchy.
getUuid Unique user ID that can be used for custom purposes.
setUuid Sets the unique user ID.
getMaterial Gets the material applied.
setMaterial getProperties Sets the object material.
setProperties Sets the caustics properties of the object.

getDependencies

 
Gets all the extern dependencies of the object (rfrk files, etc).
Geometry
getNumVertexes 
getNumTriangles 
getNumNormals 
getNumPositionsPerVertex 
getNumChannelsUVW 
addChannelUVW 
generateSphericalUVW 
generateCylindricalUVW 
generateCubicUVW 
generatePlanarUVW 
getVertex 
setVertex 
getNormal 
setNormal 
getTriangle 
setTriangle 
getTriangleGroup 
setTriangleGroup 
getTriangleUVW 
setTriangleUVW 
getTriangleMaterial 
setTriangleMaterial 
getGroupMaterial 
setGroupMaterial 
getBaseAndPivot 
setBaseAndPivot 
getWorldTransform 
getTransformSubstepsCount 
getTransfrormStepInfoByIndex 
getPosition 
setPosition 
getRotation 
setRotation 
getScale 
setScale 
getShear 
setShear 
getPivotPosition 
setPivotPosition 
getPivotRotation 
setPivotRotation 
isPosRotScaleInitialized 
cleanGeometry 
Display
getHide 
setHide 
getHideToCamera 
setHideToCamera 
getHideToReflectionsRefractions 
setHideToReflectionsRefractions 
getHideToGI 
setHideToGI 
isExcludedOfCutPlanes 
excludeOfCutPlanes 
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 

...

Merges an array of meshes into a single mesh. The original meshes are not removed (it can be done later calling Cmaxwell::Cobject::free() ). The target object must not be included in the mesh list, so target geometry (if exists) will be erased.

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

Return value

0 = Error setting reference scene file.

...

Code Block
languagejavascript
titlePython
meshes  = []
meshes.append( scene.getObject("sphere") );
meshes.append( scene.getObject("cube") );
scene.getObject("cubesphere").mergeMeshes( meshes ); // "cubesphere must exists"
scene.getObject("sphere").free();
scene.getObject("cube").free(); 

 

 

 

...

Anchor
getparent
getparent

getParent

Gets the parent object in the hierarchy.

LanguageSyntax
C++byte getParent( Cmaxwell::Cobject& parent )
PythonCmaxwellObject getParent()

Return value

C++

0 = Error getting parent object.

1 = Success.

Python

Parent object.

Anchor
setparent
setparent

setParent

Sets the parent object in the hierarchy.

LanguageSyntax
C++byte setParent( Cmaxwell::Cobject parent )
Pythonint setParent( CmaxwellObject parent )

Return value

0 = Error setting parent object.

1 = Success.

Anchor
getuuid
getuuid

getUuid

Unique user ID that can be used for custom purposes.

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

Anchor
setuuid
setuuid

setUuid

Sets the unique user ID.

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

Return value

0 = Error setting unique user ID.

1 = Success.

Anchor
getmaterial
getmaterial

getMaterial

Gets the material applied.

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

Return value

C++

0 = Error getting object material.

1 = Success.

Python

Object material.

Anchor
setmaterial
setmaterial

setMaterial

Sets the object material.

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

Return value

0 = Error setting object material.

1 = Success.

Anchor
setproperties
setproperties

setProperties

Sets the caustics properties of the object. 1 enables, 0 disables.

LanguageSyntax
C++byte setProperties( int doDirectCausticsReflection, int doDirectCausticsRefraction, int doIndirectCausticsReflection, int doIndirectCausticsRefraction )
Pythonint setProperties( byte doDirectCausticsReflection, byte doDirectCausticsRefraction, byte doIndirectCausticsReflection, byte doIndirectCausticsRefraction )

Return value

0 = Error setting object material.

1 = Success.

Anchor
getdependencies
getdependencies

getDependencies

Returns an array of strings with all the extern dependencies of the object (rfrk files, etc).

LanguageSyntax
C++byte getDependencies( dword& numDependencies, char** & paths, const bool& searchInsideProxy = true )
Pythonstr[] getDependencies( bool searchInsideProxy = true )

Parameters

TypeNameIn/OutDescription
dword&numDependenciesout(C++ only) Number of dependencies returned.
char**&pathsout(C++ onlu) String array (size = numDependencies) containing all the dependencies requested.
const bool&searchIndideProxyin

If true, the function search for dependencies also in the referenced proxy object if exists. searchInsideProxy is true by default.

Return value

C++

0 = Error getting dependency paths.

1 = Success.

Python

List of str containing the dependency paths.