DAZ Script | |
---|---|
ContentReplaceMode | { ALWAYS_REPLACE, ASK_TO_REPLACE, NEVER_REPLACE, ASK_WHEN_MATCHING } |
DAZ Script | |
---|---|
void | clearReplaceData () |
void | doReplace () |
Array | getDefaultReplaceNodeList ( DzNode baseNode ) |
String | getNewContentPath () |
String | getNewContentType () |
Array | getPotentialReplaceNodeList ( DzNode baseNode ) |
ContentReplaceMode | getReplaceMode () |
Array | getReplaceNodeList () |
void | initReplaceForContentLoad ( String path, DzNode baseNode ) |
void | removeReplaceNodes () |
void | setNewContentPath ( String contentPath ) |
void | setNewContentType ( String contentType ) |
void | setReplaceMode ( ContentReplaceMode mode ) |
void | setReplaceNodes ( Array replaceNodes ) |
void | updateReplaceNodes ( DzNode baseNode ) |
void | contentReplaceModeChanged ( DzContentReplaceMgr::ContentReplaceMode mode ) |
Responsible for the management of replacing scene items based on their respective content types.
There is only one instance of this manager in an application. This instance is created and owned by DzContentMgr. Request the instance via DzContentMgr::getContentReplaceMgr().
See Also:
Replacment methods when loading content.
void : clearReplaceData()
Resets all replace data to default values, excluding replace mode.
void : doReplace()
Performs all the necessary steps to remove content marked for replacement.
Array : getDefaultReplaceNodeList( DzNode baseNode )
Parameter(s):
Return Value:
baseNode
that would be replaced by default.Since:
Return Value:
Return Value:
Array : getPotentialReplaceNodeList( DzNode baseNode )
Parameter(s):
Return Value:
baseNode
that could potentially be replaced.Since:
ContentReplaceMode : getReplaceMode()
Return Value:
Return Value:
Since:
void : initReplaceForContentLoad( String path, DzNode baseNode )
Performs all the necessary initialization for doing content replacement when the given file will be loaded, using items attached to baseNode as potential items to replace.
void : removeReplaceNodes()
Removes all nodes in the replace list from the scene.
void : setNewContentPath( String contentPath )
Parameter(s):
void : setNewContentType( String contentType )
Parameter(s):
void : setReplaceMode( ContentReplaceMode mode )
Sets the content replace mode.
Parameter(s):
void : setReplaceNodes( Array replaceNodes )
Sets the list of nodes in the scene to be replaced.
Parameter(s):
void : updateReplaceNodes( DzNode baseNode )
Updates the replace list to contain all items that should be removed during content load. If the replace mode is ALWAYS_REPLACE, the list will contain all nodes attached (following, parented, etc.) to baseNode whose type matches the current “New Content Type” (as set through setNewContentType()). If the replace mode is ASK_TO_REPLACE, a dialog will allow the user to select what nodes should be replaced.
void : contentReplaceModeChanged( DzContentReplaceMgr::ContentReplaceMode mode )
Signature:“contentReplaceModeChanged(DzContentReplaceMgr::ContentReplaceMode)”
Emitted when the content replace mode has changed.
Parameter(s):