maxon.AssetUtilitiesInterface¶
Description¶
Helper Interface for Asset functions.
Inheritance diagram¶
Inheritance
Methods Signature¶
|
Sets the asset meta data for the given asset. |
|
Returns the asset icon. |
|
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 modifyassetName (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
-
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