-
Notifications
You must be signed in to change notification settings - Fork 2
reset
void reset()
This gives the plugin an opportunity to clean up any unneeded state or discard volatile data that is cached.
It is a good idea for a production asset plugin to implement some form of caching. Some calls like resolvePath and isAssetId will be called aggressively with repeated values.
There is no required operation for this function, but artists should expect externally modified data to be represented by the asset plugin after this operation.
There are no arguments, nothing to return, and no possible error conditions to be aware of.
Katana will most often call this when an interactive artist runs the "Flush Caches" action from Katana's toolbar or "Util" main menu. Katana will avoid calling this method if no other asset functions have been called first.
This function is not called on major scene changes like opening a new file.
Be aware that a single Katana session may often have multiple asset plugin instances running in different processes. Resetting from the Main interface does not necessarily reset all instances of the asset API.
Resolve
containsAssetId
getAssetVersions
isAssetId
resolveAsset
resolveAllAssets
resolvePath
resolveAssetVersion
Publish
Attributes
buildAssetId
getRelatedAssetId
getAssetAttributes
getAssetFields
getAssetIdForScope
setAssetAttributes
Nodegraph