maxon.AssetUtilitiesInterface

Description

Helper Interface for Asset functions.

Inheritance diagram

Inheritance

Methods Signature

AssetSetMetaData(asset, assetName, …)

Sets the asset meta data for the given asset.

GetAssetIcon(asset)

Returns the asset icon.

IncreaseAssetVersion(currentVersion)

IncreaseAssetVersion description.

Methods Definition

static AssetUtilitiesInterface.AssetSetMetaData(asset, assetName, assetVersion, assetCategory)

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(asset)

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(currentVersion)

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