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 (
ForwardRef) – Project objectasset_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 (
ForwardRef) – Project that contain the assetname (
str) – Name of the asset to loadasset_type (
str) – Type of the asset (Chara, props, set, fx)
- Return type
- Returns
Asset object
- property name¶
- Return type
str