-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Peter Shinners edited this page Apr 13, 2021
·
8 revisions
This wiki is a collection of information for implementing Asset API Plugins in Foundry's Katana. Foundry's limited documentation is scattered across their website, Python code examples, and header files.
- https://learn.foundry.com/katana/dev-guide/OpsAndOpScript/AssetAPI/Cpp.html
- https://learn.foundry.com/katana/dev-guide/Plugins/Asset/Cpp.html
- https://learn.foundry.com/katana/dev-guide/Plugins/Asset/Python.html
- https://learn.foundry.com/katana/Content/tg/asset_management_system_plugin_api/asset_management_system.html
- https://learn.foundry.com/katana/Content/tg/asset_management_system_plugin_api/publishing_asset.html

An Asset plugin is expected to implement 20 different methods of the Asset API base class. This documentation has grouped those into these categories.
-
containsAssetIdInput string contains a valid asset id anywhere within it. -
getAssetVersionsFind all the available versions of the given asset. -
isAssetIdInput string represents a valid asset id. -
resolveAssetLookup asset id and return path that it references. -
resolveAllAssetsReplace asset ids found with resolved asset strings. -
resolvePathResolve env vars, asset ids, and file sequences in. -
resolveAssetVersionReturns the version for a given asset id.
-
createAssetAndPathCreate asset and optional directory path. -
createTransactionCreate optional transaction for multiple assets. -
postCreateAssetFinish asset after the files to be published exist.
-
buildAssetIdConvert string fields into an asset id. -
getRelatedAssetIdFind related assets. -
getAssetAttributesGet metadata associated with an asset. -
getAssetFieldsConvert an asset id named string fields. -
getAssetIdForScopeChange scope of an asset id. -
setAssetAttributesSet metadata associated with asset id.
-
checkPermissionsValidate certain operations allowed on asset id. -
getAssetDisplayNameName suitable for displaying to users for an asset id. -
getUniqueScenegraphLocationFromAssetIdScenegraph location name for an asset id. -
resetReset any plugin state -
runAssetPluginCommandRun arbitrary command on an asset id.
Resolve
containsAssetIdgetAssetVersionsisAssetIdresolveAssetresolveAllAssetsresolvePathresolveAssetVersion
Publish
Attributes
buildAssetIdgetRelatedAssetIdgetAssetAttributesgetAssetFieldsgetAssetIdForScopesetAssetAttributes
Nodegraph