Implements a parametrically defined (“legacy”) figure.
Inherits :
DAZ Script | |
---|---|
DzLegacyFigure | convertPropToFigure ( DzNode srcNode, String rootBoneName, Boolean inheritSkeleton=true ) |
DAZ Script |
---|
DzLegacyFigure () |
DAZ Script | |
---|---|
DzLegacyAlternateGeometry | addAlternateGeometry ( DzBone bone, Boolean createAlais=true ) |
void | addWeld ( DzWeld weld ) |
Boolean | boneUsedByWeld ( DzBone bone ) |
void | clearVertexMaps () |
DzLegacyAlternateGeometry | findAlternateGeometry ( DzBone bone ) |
DzLegacyAlternateGeometry | findAlternateGeometry ( String boneName ) |
DzWeld | findWeldByTargetBone ( DzBone target ) |
DzWeld | findWeldByWeldBone ( DzBone weldBone ) |
DzLegacyAlternateGeometry | getAlternateGeometry ( Number index ) |
Number | getNumAlternateGeometries () |
Number | getNumWelds () |
DzWeld | getWeld ( Number which ) |
void | invalidateVertexMaps () |
void | removeAllWelds () |
bool | removeAlternateGeometry ( DzLegacyAlternateGeometry alt ) |
void | removeWeld ( DzWeld weld ) |
void | weldListChanged () |
A specialization of DzSkeleton that represents a figure where the associated geometry is bound to its bones using a set of parametrically defined joints.
This type of figure is used to implement all figure content from the pre-Genesis era - i.e., all “legacy” format figure content.
When loading legacy content, the application takes all geometry that would have previously been assigned to the individual bone instances for the figure and internally represents it as a “single skin” object owned by this class, in order to simplify/streamline the geometry pipeline. As such, the DzBone instances belonging to this figure no longer have a DzObject of their own.
In addition to its base geometry, this type of figure supports defining a set of alternate geometries, which allows various aspects of the base geometry to be changed, or “swapped”, at runtime.
Attention:
See Also:
DzLegacyFigure : convertPropToFigure( DzNode srcNode, String rootBoneName, Boolean inheritSkeleton=true )
Attempts to convert a simple node with geometry into a figure.
Parameter(s):
true
(default) and srcNode
is parented to a bone, the skeleton that bone belongs to and the bone hierarchy up to that bone will be used to create the new figure.Return Value:
DzLegacyAlternateGeometry : addAlternateGeometry( DzBone bone, Boolean createAlais=true )
Adds an alternate geometry to this figure for the specified bone - if one does not already exist.
Parameter(s):
true
, an alias for the property that controls the shape of the object is created on the specified bone.Return Value:
See Also:
Adds a welding operation to this figure.
Parameter(s):
Boolean : boneUsedByWeld( DzBone bone )
Parameter(s):
Return Value:
true
if the specified bone is used by a weld operation, otherwise false
.void : clearVertexMaps()
Clears vertex maps - causes vertex weights to be recalculated.
DzLegacyAlternateGeometry : findAlternateGeometry( DzBone bone )
Attempts to find an alternate geometry on this figure for a specified bone.
Parameter(s):
Return Value:
DzLegacyAlternateGeometry : findAlternateGeometry( String boneName )
Attempts to find an alternate geometry on this figure for a bone with the specified name.
Parameter(s):
Return Value:
DzWeld : findWeldByTargetBone( DzBone target )
Parameter(s):
Return Value:
DzWeld : findWeldByWeldBone( DzBone weldBone )
Parameter(s):
Return Value:
DzLegacyAlternateGeometry : getAlternateGeometry( Number index )
Parameter(s):
Return Value:
Number : getNumAlternateGeometries()
Return Value:
Number : getNumWelds()
Return Value:
DzWeld : getWeld( Number which )
Parameter(s):
Return Value:
void : invalidateVertexMaps()
Invalidates vertex maps - causes vertex weights to be recalculated.
void : removeAllWelds()
Removes all welding operations from this figure.
bool : removeAlternateGeometry( DzLegacyAlternateGeometry alt )
Parameter(s):
Return Value:
true
if the alternate geometry is removed, otherwise false
.void : removeWeld( DzWeld weld )
Removes a welding operation from this figure.
Parameter(s):
void : weldListChanged()
Signature:“weldListChanged()”
Emitted when the list of weld operations for this skeleton has changed.