C++ API Reference
MCacheSchema Class Reference

Defines a node's behavior when participant EM Cached Playback. More...

#include <MCacheSchema.h>

Public Member Functions

const MCacheSchemaAttributesRangeattributes () const
 The attributes that planned to be cached. More...
 
void reset ()
 Reset this schema to the minimal. More...
 
MStatus add (const MObject &)
 Force the attribute to be cached. More...
 

Detailed Description

Defines a node's behavior when participant EM Cached Playback.

Can be used to query or modify the attributes being cached and request special support for the node.

Warning
Do not store pointers to this object
Users cannot construct or destroy this Maya object

Member Function Documentation

const MCacheSchemaAttributesRange& attributes ( ) const
inline

The attributes that planned to be cached.

Removed attributes will not be included in this list.

Warning
This list may differ from what Maya get cached in the frame-evaluation-time. Attributes skipped at frame-pre-evaluation time with `MEvaluationNode::skipEvaluation` will not be cached anyway.
void reset ( )

Reset this schema to the minimal.

Only the output attributes required by downstream nodes or viewport will be cached

MStatus add ( const MObject attribute)

Force the attribute to be cached.

This method allows you to cache input attributes or other animated attributes that are not fully understood by EM.

Parameters
[in]attributeattribute to cache
Returns
Status code
Status Codes:
  • MS::kSuccess Operation successful
  • MS::kInvalidParameter Attribute is invalid

The documentation for this class was generated from the following files: