DAZ Script | |
---|---|
GeometryType | { BaseGeometry, WorkingGeometry, AssemblyGeometry } |
DAZ Script | |
---|---|
DzShape | getCurrentShapeForNode ( DzNode node ) |
DAZ Script |
---|
DzShape () |
void | aboutToFinalize ( DzVertexMesh mesh ) |
void | aboutToReplaceMaterial ( DzMaterial currentMat, DzMaterial newMat ) |
void | assemblyChanged () |
void | assemblyNeedsConfigurationCheck () |
void | geomChanged () |
void | materialAdded ( DzMaterial mat ) |
void | materialChanged () |
void | materialListChanged () |
void | materialRemoved ( DzMaterial mat ) |
void | materialReplaced ( DzMaterial oldMat, DzMaterial newMat ) |
void | materialSelected ( DzMaterial mat ) |
void | materialSelectionChanged () |
void | materialUnselected ( DzMaterial mat ) |
void | smoothingChanged () |
void | subdivisonChanged () |
void | uvsChanged () |
void | vertexSelectionChanged () |
A container class that references a DzGeometry and holds all the pertinent material definitions, etc for that geometry.
Types of geometry available from the shape.
Since:
Attention:
DzShape : getCurrentShapeForNode( DzNode node )
Parameter(s):
Return Value:
node
(if any), otherwise null.Since:
DzError : addMaterial( DzMaterial mat )
Adds the given material to the available material list for this shape. Also sets the currently active material index.
Parameter(s):
Return Value:
void : clearMaterialSelection()
Sets the selection status to false for all materials of this shape.
DzError : createMaterial( String name )
Creates a material face group and a default material.
Parameter(s):
Return Value:
name
doesn't already exist on the shape (or can be created), and the shape has geometry, otherwise an appropriate error code.DzMaterial : findMaterial( String materialName )
Finds a material on the shape by name.
Parameter(s):
Return Value:
materialName
in the list of materials for the shape, otherwise null.Number : findMaterialIndex( String materialName )
Parameter(s):
Return Value:
materialName
in the list of materials for the shape, -1 if no material with that name is found.Number : findMaterialIndex( DzMaterial mat )
Parameter(s):
Return Value:
Array : findMaterials( String materialName )
Attempts to find the materials named materialName
.
Parameter(s):
Return Value:
materialName
.Array : getAllMaterials()
Return Value:
Array : getAllRenderPrioritizedMaterials()
Return Value:
Array : getAllSelectedMaterials()
Return Value:
DzGeometry : getAssemblyGeometry()
Return Value:
DzGeometry : getCurrentGeometry( GeometryType type=BaseGeometry )
Parameter(s):
Return Value:
Since:
Return Value:
DzMaterial : getMaterial( Number which )
Parameter(s):
Return Value:
which
is within range, the (shared) material at the index in the list for the shape, otherwise null.DzVertexMesh : getModifiableAssemblyGeom( Boolean isRender )
Parameter(s):
true
, the geometry will be render-quality.Return Value:
Return Value:
Since:
Return Value:
DzMaterial : getSelectedMaterial( Number which )
Parameter(s):
Return Value:
which
is within range, the (shared) material in the selected list for the shape.Boolean : hasAssemblyGeometry()
Return Value:
true
if this shape assembles multiple geometries together, otherwise false
.Boolean : hasDifferentRenderThanDraw()
Return Value:
true
if the shape needs to build differently for render than for OpenGL draw, otherwise false
.DzError : insertMaterial( DzMaterial mat, Number index=-1 )
Inserts the given material at the given index in the material list, or appends to the list of index is < 0 or out of range. Also sets the currently active material index.
Parameter(s):
Return Value:
DzError : removeMaterial( DzMaterial mat )
Removes the given material from this shape. Also removes any references to this materal that existed on any faces.
Parameter(s):
Return Value:
DzError : removeMaterialByName( String materialName, String defaultName=“” )
Parameter(s):
Return Value:
DzError : replaceMaterial( DzMaterial currentMat, DzMaterial newMat )
Attempts to find and replace the given material with the new material.
Parameter(s):
Return Value:
void : aboutToFinalize( DzVertexMesh mesh )
Signature:“aboutToFinalize(DzVertexMesh*)”
Emitted when the mesh for this shape is about to be finalized.
Parameter(s):
void : aboutToReplaceMaterial( DzMaterial currentMat, DzMaterial newMat )
Signature:“aboutToReplaceMaterial(DzMaterial*,DzMaterial*)”
Emitted when a material associated with this shape is about to replaced with another material.
Since:
void : assemblyChanged()
Signature:“assemblyChanged()”
Emitted when the assembly has changed.
void : assemblyNeedsConfigurationCheck()
Signature:“assemblyNeedsConfigurationCheck()”
Emitted when assembly needs to be checked before build.
Since:
void : geomChanged()
Signature:“geomChanged()”
Emitted when the geometry referenced by this shape changes or is swapped out.
void : materialAdded( DzMaterial mat )
Signature:“materialAdded(DzMaterial*)”
Emitted after a material has been added to the shape.
Parameter(s):
void : materialChanged()
Signature:“materialChanged()”
Emitted when a material associated with this shape changes.
void : materialListChanged()
Signature:“materialListChanged()”
Emitted after a material has been added to or removed from the shape.
void : materialRemoved( DzMaterial mat )
Signature:“materialRemoved(DzMaterial*)”
Emitted after a material has been removed from the shape.
Parameter(s):
void : materialReplaced( DzMaterial oldMat, DzMaterial newMat )
Signature:“materialReplaced(DzMaterial*,DzMaterial*)”
Emitted when a material associated with this shape is replaced with another material.
Since:
void : materialSelected( DzMaterial mat )
Signature:“materialSelected(DzMaterial*)”
Emitted after a material used by this shape is selected.
Parameter(s):
void : materialSelectionChanged()
Signature:“materialSelectionChanged()”
Emitted after a material used by this shape is selected or deselected.
void : materialUnselected( DzMaterial mat )
Signature:“materialUnselected(DzMaterial*)”
Emitted after a material used by this shape is deselected.
Parameter(s):
void : smoothingChanged()
Signature:“smoothingChanged()”
Emitted when the smoothing settings for the shape have changed.
void : subdivisonChanged()
Signature:“subdivisonChanged()”
Emitted when subdivision for the shape has changed.
void : uvsChanged()
Signature:“uvsChanged()”
Emitted when the current UV set has changed.
void : vertexSelectionChanged()
Signature:“vertexSelectionChanged()”
Emitted when vertex selection for the shape has changed.