DzCustomData implementation that can be associated with an individual DzElement instance.
Inherits :
DAZ Script |
---|
DzElementPostLoadFileData ( String name, Boolean persistent=true ) |
DAZ Script | |
---|---|
String | getPostLoadFilePath () |
void | setPostLoadFilePath ( String script ) |
If the file to post-load is a script:
A global transient variable named DataItem
, which refers to the DzElementPostLoadFileData that invoked the execution of the script, is provided to the script in the global context at runtime. Attempts to use this global variable outside of the associated script will result in a ReferenceError.
A global transient variable named FileIOSettings
, which refers to the DzFileIOSettings that was used when the element that owns the data item was loaded, is provided to the script in the global context at runtime. Attempts to use this global variable outside of the associated script will result in a ReferenceError. (since 4.9.4.109)
Attention:
If the file to post-load is not a script, the path is stored but the file is not loaded.
DzElementPostLoadFileData( String name, Boolean persistent=true )
Default constructor.
Parameter(s):
true
, the data item will be saved with the element to the native file format.String : getPostLoadFilePath()
Return Value:
void : setPostLoadFilePath( String script )
Sets the file path of the file for this data item.
Parameter(s):