User Tools

Site Tools


DzGeomSourceFileData

A DzSourceFileData implementation that stores the source file path and group name for a geometry.

More...

Inherits :

Properties

DAZ Script
StringgroupName

Constructors

DAZ Script
DzGeomSourceFileData ( String filePath=“”, String groupName=“” )

Detailed Description

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 );

Properties


String : groupName

The name of the group that the geometry came from.

Constructors


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):

  • filePath - The path to the source file.
  • groupName - The name of the group in the source file.

Attention:

  • It is the developer's responsibility to manage the lifetime of this object. This can be accomplished most easily by adding it to the list of data items owned by an element.

See Also: