A generic asset container for hierarchical structures that can be represented by a slash ('/') delimted path.
Inherits :
DAZ Script | |
---|---|
Number | addChildContainer ( String typePath ) |
Number | addChildContainer ( DzTypeAssetContainer container ) |
void | clear () |
DzTypeAssetContainer | findChildContainer ( String typePath ) |
String | getTextPath ( Boolean ignoreRoot=true ) |
String | getTypeName () |
Boolean | insertToSpecificType ( DzAsset asset, String typePath ) |
void | aboutToClear () |
A generic asset container that takes on the type of the data assigned to it, which can be used to present hierarchical structures that are representable by a slash ('/') delimted path.
Holds the data associated with this container; type depends on the type of the data assigned.
Number : addChildContainer( String typePath )
Adds a new container with the given name, if one doesn't already exist.
Parameter(s):
Return Value:
Number : addChildContainer( DzTypeAssetContainer container )
Adds the given container if one of the same type name doesn't exist.
Parameter(s):
Return Value:
void : clear()
Clears all the child containers and assets associated with this container. Emits endAssetRemove() and endChildContainerRemove().
DzTypeAssetContainer : findChildContainer( String typePath )
Parameter(s):
Return Value:
String : getTextPath( Boolean ignoreRoot=true )
Parameter(s):
true
, the root item will not be included in the path.Return Value:
String : getTypeName()
Return Value:
Boolean : insertToSpecificType( DzAsset asset, String typePath )
Attempts to insert the asset to a specific type.
Parameter(s):
Return Value:
true
if successful, otherwise false
.void : aboutToClear()
Signature:“aboutToClear()”
Emitted when this container is about to be cleared.