User Tools

Site Tools


DzSourceFileData

DzElementData implementation that stores the source file of an imported item.

More...

Inherits :

Inherited By : DzGeomSourceFileData

Properties

Constructors

DAZ Script
DzSourceFileData ( String filePath=“” )

Methods

Detailed Description

This class is mainly used by the framework to store source paths for imported Poser content. The class can be used as follows to retrieve the path of the CR2 file from which a figure was loaded:

Todo

Examples:

This class could also be used by plug-in developers for other custom importers to store the source file for imported items.

Properties


String : sourceFilePath

The path to the source file.

Constructors


DzSourceFileData( String filePath=“” )

Creates a new Source File Data object that stores the given file path.

Methods


Boolean : getGeometryChanged()

Return Value:

  • true if the source geometry has changed, otherwise false.

String : getPoserRuntimeRelativePath()

Tries to convert the source path into a “Poser” style Runtime-relative path (i.e. “:Runtime:Libraries:Character:FileName.cr2”). Returns the converted path if successful, and an empty string if unsuccessful.

Return Value:

  • The source path.

void : setGeometryChanged( Boolean onoff )

Sets whether or not the source geometry has changed.