-
Notifications
You must be signed in to change notification settings - Fork 1
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 main menu.
Artists should be aware that a single Katana session may often have multiple asset plugins running in different processes. Resetting from the Main interface does not necessarily reset all instances of the asset API.
TODO -- is this called on major scene state events like file open or render? TODO -- is there an Event emitted when this is run?
Resolve
containsAssetIdgetAssetVersionsisAssetIdresolveAssetresolveAllAssetsresolvePathresolveAssetVersion
Publish
Attributes
buildAssetIdgetRelatedAssetIdgetAssetAttributesgetAssetFieldsgetAssetIdForScopesetAssetAttributes
Nodegraph