Asset

class odin.source.core.assets.Asset(parent, name=None, asset_type=None, data=None)

Asset object. Each asset has a type: CHARA, PROPS, SET or FX.

Usage:

asset = Asset.new(Project, ‘asset_name’, ‘ASSET_TYPE’)

asset = Asset.load(Project, ‘asset_name’, ‘ASSET_TYPE’)

Parameters
  • name (str) – name of the loaded asset

  • parent (Project) –

  • asset_type (Optional[str]) –

  • data (Optional[Dict[str]]) –

Return type

None

property asset_type
Return type

str

static list(parent, asset_type)

List the assets found in the given project.

Parameters
  • parent (Project) – Project object

  • asset_type (str) – Type of the assets to list

Return type

List[str]

Returns

List of the assets

classmethod load(parent, name, asset_type)

Load an existing asset.

Parameters
  • parent (Project) – Project that contain the asset

  • name (str) – Name of the asset to load

  • asset_type (str) – Type of the asset (Chara, props, set, fx)

Return type

Asset

Returns

Asset object

property name
Return type

str

classmethod new(parent, name, asset_type)

Create a new sequence.

Parameters
  • parent (Project) – Project to put the sequence in

  • name (str) – Name of the sequence

  • asset_type (str) – Type of the asset (Chara, props, set, fx)

Return type

Asset

Returns

Asset object

property parent
Return type

Project

property paths
Return type

dict