Skip to main content

system.kanoa.asset.getClosestAncestorAttribute

Description

Returns the assetAttrValue in order of the asset path tree. Returns None if the assetAttrValue isn't found.

Syntax

getClosestAncestorAttribute(assetPath, assetAttrName)
  • Parameters
      assetPath (string)
      assetAttrName (string)
  • Returns
      assetAttrValue (string)
  • Code Examples

    # Example Usage:
    assetPath = 'Kanoa Industries\Adelaide Hills\Packagin\Line 1'
    assetAttrValue = system.kanoa.asset.getClosestAncestorAttribute(assetPath, '_ProductionDay')