maxscript/mxsplugin/mxsPlugin.h File Reference

Classes

class  ParamRef
 

Macros

#define is_msplugin_class(v)   ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MSPluginClass))
 
#define MPC_TEMPORARY   (1<<0)
 
#define MPC_REDEFINITION   (1<<1)
 
#define MPC_MS_CREATING   (1<<2)
 
#define MPC_MS_WAS_CREATING   (1<<3)
 
#define MPC_EDITING_IN_CP   (1<<4)
 
#define MPC_EDITING_IN_MTLEDT   (1<<5)
 
#define MPC_EDITING_IN_EFX   (1<<6)
 
#define MPC_REPLACE_UI   (1<<7)
 
#define MPC_INVISIBLE   (1<<8)
 
#define MPC_SILENTERRORS   (1<<9)
 
#define MPC_MAX_CREATING   (1<<10)
 
#define MPC_ABORT_CREATE   (1<<11)
 
#define MPC_LEVEL_6   (1<<12)
 
#define MPC_IS_MANIP   (1<<13)
 
#define MPC_ALTERNATE   (1<<14)
 
#define MPC_CAD_FILESAVE   (1<<15)
 
#define MPC_PROMOTE_DEL_PROPS   (1<<16)
 
#define MPC_USE_PB_VALIDITY   (1<<17)
 
#define MPC_CAD_FILELOAD_LOADDEFDATA   (1<<18)
 
#define key_parm(_key)   _get_key_param(keys, n_##_key)
 
#define bool_key_parm(_key, var, def)   ((var = _get_key_param(keys, n_##_key)) == &unsupplied ? def : var->to_bool())
 
#define MSP_LOADING   0x0001
 
#define MSP_DISABLED   0x0002
 
#define MSP_DELETED   0x0004
 
#define MSPLUGIN_CHUNK   0x0010
 

Typedefs

typedef RefTargetHandle(* creator_fn) (MSPluginClass *pic, BOOL loading)
 

Enumerations

enum  { pl_this, pl_version, pl_loading, pl_delegate }
 
enum  { pl_extent = pl_delegate + 1, pl_min, pl_max, pl_center }
 
enum  {
  pl_mesh2 = pl_center + 1, pl_transform, pl_inverseTransform, pl_bbox,
  pl_owningNode
}
 
enum  { pl_mesh = pl_delegate + 1 }
 
enum  { pl_beziershape = pl_delegate + 1 }
 
enum  {
  pl_target = pl_delegate + 1, pl_node, pl_gizmoDontDisplay, pl_gizmoDontHitTest,
  pl_gizmoScaleToViewport, pl_gizmoUseScreenSpace, pl_gizmoActiveViewportOnly, pl_gizmoUseRelativeScreenSpace,
  pl_gizmoApplyUIScaling
}
 
enum  {
  pl_isLeaf = pl_delegate + 1, pl_isKeyable, pl_method, pl_parentTransform,
  pl_usesParentTransform
}
 

Macro Definition Documentation

#define is_msplugin_class (   v)    ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MSPluginClass))
#define MPC_TEMPORARY   (1<<0)
#define MPC_REDEFINITION   (1<<1)
#define MPC_MS_CREATING   (1<<2)
#define MPC_MS_WAS_CREATING   (1<<3)
#define MPC_EDITING_IN_CP   (1<<4)
#define MPC_EDITING_IN_MTLEDT   (1<<5)
#define MPC_EDITING_IN_EFX   (1<<6)
#define MPC_REPLACE_UI   (1<<7)
#define MPC_INVISIBLE   (1<<8)
#define MPC_SILENTERRORS   (1<<9)
#define MPC_MAX_CREATING   (1<<10)
#define MPC_ABORT_CREATE   (1<<11)
#define MPC_LEVEL_6   (1<<12)
#define MPC_IS_MANIP   (1<<13)
#define MPC_ALTERNATE   (1<<14)
#define MPC_CAD_FILESAVE   (1<<15)
#define MPC_PROMOTE_DEL_PROPS   (1<<16)
#define MPC_USE_PB_VALIDITY   (1<<17)
#define MPC_CAD_FILELOAD_LOADDEFDATA   (1<<18)
#define key_parm (   _key)    _get_key_param(keys, n_##_key)
#define bool_key_parm (   _key,
  var,
  def 
)    ((var = _get_key_param(keys, n_##_key)) == &unsupplied ? def : var->to_bool())
#define MSP_LOADING   0x0001
#define MSP_DISABLED   0x0002
#define MSP_DELETED   0x0004
#define MSPLUGIN_CHUNK   0x0010

Typedef Documentation

typedef RefTargetHandle(* creator_fn) (MSPluginClass *pic, BOOL loading)

Enumeration Type Documentation

anonymous enum
Enumerator
pl_this 
pl_version 
pl_loading 
pl_delegate 
77  {
79 };
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:78
anonymous enum
Enumerator
pl_extent 
pl_min 
pl_max 
pl_center 
81  {
82  pl_extent = pl_delegate + 1, pl_min, pl_max, pl_center // for SimpleMods
83 };
Definition: mxsPlugin.h:82
Definition: mxsPlugin.h:82
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:82
Definition: mxsPlugin.h:82
anonymous enum
Enumerator
pl_mesh2 
pl_transform 
pl_inverseTransform 
pl_bbox 
pl_owningNode 
85  {
87 };
Definition: mxsPlugin.h:82
Definition: mxsPlugin.h:86
Definition: mxsPlugin.h:86
Definition: mxsPlugin.h:86
Definition: mxsPlugin.h:86
Definition: mxsPlugin.h:86
anonymous enum
Enumerator
pl_mesh 
89  {
90  pl_mesh = pl_delegate + 1 // for SimpleObjects
91 };
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:90
anonymous enum
Enumerator
pl_beziershape 
93  {
94  pl_beziershape = pl_delegate + 1 // for SimpleSplines
95 };
Definition: mxsPlugin.h:94
Definition: mxsPlugin.h:78
anonymous enum
Enumerator
pl_target 
pl_node 
pl_gizmoDontDisplay 
pl_gizmoDontHitTest 
pl_gizmoScaleToViewport 
pl_gizmoUseScreenSpace 
pl_gizmoActiveViewportOnly 
pl_gizmoUseRelativeScreenSpace 
pl_gizmoApplyUIScaling 
97  {
98  pl_target = pl_delegate + 1, pl_node, // for SimpleManipulators
101 };
Definition: mxsPlugin.h:100
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:100
Definition: mxsPlugin.h:100
Definition: mxsPlugin.h:100
Definition: mxsPlugin.h:99
Definition: mxsPlugin.h:98
Definition: mxsPlugin.h:99
Definition: mxsPlugin.h:99
Definition: mxsPlugin.h:98
anonymous enum
Enumerator
pl_isLeaf 
pl_isKeyable 
pl_method 
pl_parentTransform 
pl_usesParentTransform 
103  {
104  pl_isLeaf = pl_delegate + 1, // for scripted controller plugins
105  pl_isKeyable,
106  pl_method,
107  pl_parentTransform, // these 2 are actively used only for P/R/S/Transform controllers
109 };
Definition: mxsPlugin.h:104
Definition: mxsPlugin.h:105
Definition: mxsPlugin.h:108
Definition: mxsPlugin.h:78
Definition: mxsPlugin.h:106
Definition: mxsPlugin.h:107