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.
- property name¶
- Return type
str
- classmethod new(parent, name, asset_type)¶
Create a new sequence.
- property paths¶
- Return type
dict