A DzSourceFileData implementation that stores the source file path and group name for a geometry.
Inherits :
DAZ Script |
---|
DzGeomSourceFileData ( String filePath=“”, String groupName=“” ) |
Implements a custom data item that stores the source file path and group name for the geometry of an imported object on the element.
Can be used as follows to retrieve the path of the file from which a geometry was loaded:
var sPath; var sGroup; var oSkeleton = Scene.getPrimarySelection(); // ... error checking var oData = oSkeleton.findDataItem( "GeomSourceFileData" ); if( oData && oData.inherits( "DzGeomSourceFileData" ) ){ sPath = oData.sourceFilePath; sGroup = oData.groupName; } print( "Source Path:", sPath ); print( "Source Group:", sGroup );
DzGeomSourceFileData( String filePath=“”, String groupName=“” )
Creates a new geometry source file data object that stores the source file path and group name of an imported object.
Parameter(s):
Attention:
See Also: