3ds Max C++ API Reference
NodeEventNamespace Namespace Reference

Typedefs

typedef AnimHandle NodeKey
 
typedef Tab< NodeKeyNodeKeyTab
 
typedef SceneEventNamespace::CallbackKey CallbackKey
 

Functions

NodeKey GetKeyByNode (INode *node)
 Returns the NodeKey for a node object. More...
 
INodeGetNodeByKey (NodeKey nodeKey)
 Returns a node object from a NodeKey. More...
 

Typedef Documentation

◆ NodeKey

◆ NodeKeyTab

◆ CallbackKey

Function Documentation

◆ GetKeyByNode()

NodeKey NodeEventNamespace::GetKeyByNode ( INode node)
inline

Returns the NodeKey for a node object.

Returns a node's key value, which is the AnimHandle for the node object.

Parameters
[in]nodeThe node object.
Returns
The node's key value.
67  {
68  if( node!=NULL )
70  else return 0;
71  }
#define NULL
Definition: autoptr.h:18
Definition: Animatable.h:118
static CoreExport AnimHandle GetHandleByAnim(Animatable *anim)
Get the unique handle for an Animatable object.

◆ GetNodeByKey()

INode* NodeEventNamespace::GetNodeByKey ( NodeKey  nodeKey)
inline

Returns a node object from a NodeKey.

Returns a node object from its key value, which is the AnimHandle for the node object.

Parameters
[in]nodeKeyThe node's key value, which is the AnimHandle for the node object.
Returns
The node object.
76  {
77  Animatable* anim = Animatable::GetAnimByHandle(nodeKey);
78  if( (anim!=NULL) && (anim->SuperClassID()==BASENODE_CLASS_ID) )
79  return (INode*)anim;
80  else return NULL;
81  }
virtual CoreExport SClass_ID SuperClassID()=0
Retrieves a constant representing the type of the plugin.
static CoreExport Animatable * GetAnimByHandle(AnimHandle handle)
Get an Animatable object from its unique handle.
Definition: inode.h:55
#define BASENODE_CLASS_ID
Definition: plugapi.h:369