Skip to content
Peter Shinners edited this page Feb 26, 2024 · 6 revisions
void  resolveAsset(
    const std::string& assetId, 
    std::string& ret
)

Convert a string that should contain an assetId into a resolved file path. The ret string should get a copy of the resulting file path.

Mostly Katana will use resolveAllAssets or resolvePath plugin methods to convert assetIds into file paths.

If the resulting ret is for a sequence of filenames, the frame numbers should be encoded in a format that is understood by the current FileSequence plugin. This will be something like .####. in the filename. The other resolvePath method has enough information to substitute a single numbered filename.,

Katana will still call this function on arbitrary strings, not every assetId argument will be considered a valid isAssetId value. When an invalid assetId is provided, it should be copied to the ret result argument with no changes.