A DzElementData implementation that stores the source file of an imported object on the element.
Inherits :
Inherited By : DzGeomSourceFileData
DAZ Script | |
---|---|
String | sourceFilePath |
DAZ Script |
---|
DzSourceFileData ( String filePath=“” ) |
DAZ Script | |
---|---|
Boolean | getGeometryChanged () |
String | getPoserRuntimeRelativePath () |
void | setGeometryChanged ( Boolean onoff ) |
Implements a custom data item that stores the source of an imported object on the element.
Primarily used by the framework to store source paths for imported Poser format content.
Can be used as follows to retrieve the path of the CR2 file from which a figure was loaded:
var sPath; var oSkeleton = Scene.getPrimarySelection(); // ... error checking var oData = oSkeleton.findDataItem( "SourceFileData" ); if( oData && oData.inherits( "DzSourceFileData" ) ){ sPath = oData.sourceFilePath; } print( "Source Path:", sPath );
Could also be used by plug-in developers for other custom importers to store the source file for imported objects.
DzSourceFileData( String filePath=“” )
Creates a new source file data object that stores the source path of an imported object.
Parameter(s):
Attention:
See Also:
Boolean : getGeometryChanged()
Return Value:
true
if the source geometry has changed, otherwise false
.String : getPoserRuntimeRelativePath()
Attempts to convert the source path into a “Poser” style Runtime-relative path (i.e., “:Runtime:Libraries:Character:FileName.cr2”).
Return Value:
void : setGeometryChanged( Boolean onoff )
Sets whether or not the source geometry has changed.
Parameter(s):