-
Notifications
You must be signed in to change notification settings - Fork 1
resolveAllAssets
void resolveAllAssets(
const std::string& str,
std::string& ret
)Given an arbitrary string of text, find all whitespace separated assetId tokens and replace them with resolved file paths.
The resulting text must be copied into the ret argument. If no
assetIds are found, the ret will be a complete copy of str.
If your assetId tokens can contain whitespace you will need to quote or escape them somehow.
There should be no error conditions or problems. If some part
of the string represents an invalid assetId it should generally
be unaltered when passed to ret.
This function is not used as commonly as the regular [resolveAsset] or [resolvePath] functions. It will also be called on arbitrary strings, without first being tested with [containsAssetIds].
This will be run on arbitrary command line statements, like the
ImageWrite postScripts parameter. It will also be run when
any string parameter's getFileSequenceValue method is called.
Parameter expressions also have an assetResolve function available
which will pass a string argument to this method after first
checking with [containsAssetId].
Resolve
containsAssetIdgetAssetVersionsisAssetIdresolveAssetresolveAllAssetsresolvePathresolveAssetVersion
Publish
Attributes
buildAssetIdgetRelatedAssetIdgetAssetAttributesgetAssetFieldsgetAssetIdForScopesetAssetAttributes
Nodegraph