RamAsset

A class representing an asset.

Inherits: RamItem

Static Methods

Method Arguments Description
fromDict
RamAsset
dict or object: assetDict Builds a RamAsset from a dict or object like the one returned by the RamDaemonInterface
fromPath
RamAsset
string: folderPath
Returns a RamAsset instance built using the given path. The path can be any file or folder path from the asset (a version file, a preview file, etc)

Methods

Method Arguments Description
constructor string: assetName,
string: assetShortName,
string: assetFolder,
string: assetGroup="",
string: tags=[]
tags
list of string
Some tags describing the asset. An empty string if the Daemon is not available.
group
string
The name of the group containing this asset.

API Dev notes

Note

These section is for the development of the API only; you should not need these when developping your add-on using the API.

(Im)mutable data

The data returned by the methods can be either mutable or immutable.

Method Type of the returned data Notes
group Immutable This method is actually implemented in RamItem instead of RamAsset
tags Mutable

META