Skip to content
Peter Shinners edited this page Apr 13, 2021 · 5 revisions
void buildAssetId(const StringMap& fields, std::string& ret)
  • @param fields String map containing key/value strings representing asset fields.
  • @param ret Set to asset id.

The fields of an asset are the key components needed to retrieve an asset from an asset management system. Katana assumes that an asset has a name field and - if provided - also uses a version field.

Args: fields (dict) : Has string keys and values.

Returns: (str) New asset id, on success. Otherwise an empty string.

this is used throughout the Katana source code

(but where do the values come from? what is this mess?)