Skip to content

resolveAssetVersion

Peter Shinners edited this page Apr 13, 2021 · 6 revisions
void  resolveAssetVersion(const std::string& assetId,
        std::string& ret, const std::string& versionStr = std::string())
  • @param assetId Input asset id resolve.
  • @param ret Returns the version that this asset id resolves to.
  • @param versionStr In some asset management systems the version can be specified by keywords (example: latest, aproved, etc) that might be associated to a specific version number. If versionStr is specified, then the plugin will try to return (on ret) the resolved string number for the assetId specified by str and the given version keyword (the versionStr value).

Find an exact version for a given version string.

Returns the version for a given asset id. If it is a partial asset id (which does not have a version) then an empty string is returned.

String with the integer version number that this asset id resolves to, or an empty string if an error occurs.

In some asset management systems the version can be specified by keywords (example: latest, approved, etc) that might be associated to a specific version number. If versionStr is specified, then the plugin will try to return (on ret) the resolved string number for the assetId specified by str and the given version keyword (the versionStr value).

This accepts an Asset ID that references a tag or meta version such as latest or lighting and returns the version number that it corresponds to. It also accepts an Asset ID that contains no version information and an optional versionTag parameter, and produces the version number that corresponds to the versionTag argument.

This is used by the LookFile resolver, Katana in Batch mode, the Casting Sheet plug-in, and the Importomatic user interface.

This should return the individual version number as a string not the nid to the version entity.

Args: assetId (str) : String to evaluate versionTag (str) : A name for a given version

Returns: (str) An asset id that includes the provided version

Clone this wiki locally