Go to: Related nodes. Attributes.

The diskCache node maintains the relationship between a .iff cache file on disk and a node that is utilizing the cache data. Each diskCache is registered with the globalCacheControl node, which can be used to globally enable and disable the cache. The diskCache node returns a "file descriptor" in the form of FLfile, which is understood by flib.h/ilib.h from Maya API.

Node nameParentsMFn typeCompatible function sets
diskCachenodekDiskCachekBase
kNamedObject
kDependencyNode
kDiskCache

Related nodes

globalCacheControl

Attributes (10)

cacheName, cacheType, copyLocally, diskCache, enable, endTime, hiddenCacheName, samplingRate, samplingType, startTime

Long name (short name)TypeDefaultFlags
diskCache (dc) Messagen/aoutputinputconnectable
The message attribute needs to be connected to the DG node which is using this diskCache instance, and which can then access the cached file via the method getCacheFile.
enable (ebl) booltrueoutputinputconnectablestorable
Enable or disable the disk cache
cacheName (cn) stringNULLoutputinputconnectablestorable
The disk cache name
startTime (stim) time0filmoutputconnectable
The start time in the current disk cache. This attribute is read only. Its value is specified at read time by the cache file data.
endTime (etim) time0filmoutputconnectable
The end time in the current disk cache. This attribute is read only. Its value is specified at read time by the cache file data.
samplingType (st) enum0outputconnectable
How frequently the frames are sampled.
samplingRate (sr) integer0outputconnectable
The oversampling rate of the current disk cache. This attribute is read only. Its value is specified at read time by the cache file data.
cacheType (ct) stringNULLoutputinputconnectablestorable
The disk cache type with "mcfi" for particle initial cache, "mcfp" for particle playback cache, and "mcj" for jiggle cache.
hiddenCacheName (hcn) stringNULLoutputinputconnectablestorable
The hidden disk cache name
copyLocally (cpl) booltrueoutputinputconnectablestorable
Maya requires cache modifications (such as Delete, Append and Truncate) to be made on local copies of disk cache files. When true, Maya places copies of a cache's data file in a uniquely named directory in the user's temporary directory (described by the MEL command "internalVar -userTmpDir"). However, for performance reasons, you may wish to disable automatic creation of these local disk cache copies by setting this attribute to false.