assetMetadata function

Syntax

  • float/bool/string/float[]/bool[]/string[] assetMetadata(filePath, key, defaultValue)

Parameters

  1. filePathstring
    Path to asset. See Asset Search for information about search locations.
  2. keystring
    Key for the metadata attribute.
  3. defaultValue—((float/bool/string/float[]/bool[]/string[])
    Default value. This value is returned if the metadata attribute with the given key and type does not exist..

Returns

Returns metadata potentially included in the geometry asset.

Description

Some geometry formats might contain metadata which can be queried with this function.

Related