maxon.AssetUtilitiesInterface

Description

Helper Interface for Asset functions.

Inheritance diagram

Inheritance

Parent Class:

Methods Signature

AssetSetMetaData(*args)

Sets the asset meta data for the given asset.

GetAssetIcon(*args)

Returns the asset icon.

IncreaseAssetVersion(*args)

IncreaseAssetVersion description.

Methods Definition

static AssetUtilitiesInterface.AssetSetMetaData(*args)

Sets the asset meta data for the given asset.

Parameters
  • asset (maxon.AssetDescription) – Asset to modify

  • assetName (str) – Human readable asset name.

  • assetVersion (str) – Asset version to set.

  • assetCategory (maxon.Id) – Asset category to set.

static AssetUtilitiesInterface.GetAssetIcon(*args)

Returns the asset icon.

It returns the preview stored under ASSETMETADATA.ASSET_PREVIEWIMAGEURL

Parameters

asset (maxon.AssetDescription) – Asset to use.

Returns

Url to the preview icon on success.

Return type

maxon.Url

static AssetUtilitiesInterface.IncreaseAssetVersion(*args)

IncreaseAssetVersion description.

Parameters

currentVersion (str) – Increases the version string by one. e.g. “1.0” -> “1.1” or “1.0.99” -> “1.1.00”

Returns

New Version String on success.

Return type

str