macrorec.h File Reference

macrorec.h File Reference
#include "maxheap.h"
#include "baseinterface.h"
#include "maxapi.h"
#include "GetCOREInterface.h"
#include "matrix3.h"
#include "maxscript/ScripterExport.h"

Classes

class  MacroRecorder
 Provides various methods to emit pieces of script to the Macro Recorder. More...
 
class  MacroRecorder::MacroRecorderDisable
 Class for easily & safely disabling the macro recorder. More...
 

Macros

#define macroRec   GetCOREInterface()->GetMacroRecorder()
 A utility macro for accessing the global instance of the macro recorder. More...
 

Enumerations

enum  {
  mr_int, mr_float, mr_string, mr_bool,
  mr_point3, mr_color, mr_angaxis, mr_quat,
  mr_time, mr_reftarg, mr_bitarray, mr_pbbitmap,
  mr_matrix3, mr_nurbssel, mr_meshselbits, mr_meshsel,
  mr_subanim, mr_animatable, mr_classid, mr_nurbsselbits,
  mr_point4, mr_acolor, mr_sel, mr_funcall,
  mr_varname, mr_create, mr_angle, mr_percent,
  mr_index, mr_prop, mr_name, mr_dimfloat,
  mr_dimpoint3, mr_point2
}
 Value types. More...
 

Functions

ScripterExport void InitMacroRecorder ()
 
ScripterExport const MCHARcommand_name_from_code (int com)
 

Variables

ScripterExport MacroRecordermacroRecorder
 

Macro Definition Documentation

#define macroRec   GetCOREInterface()->GetMacroRecorder()

A utility macro for accessing the global instance of the macro recorder.

Enumeration Type Documentation

anonymous enum

Value types.

Enumerator
mr_int 

An integer.

Follow the tag with the int (Basic C type).

mr_float 

A floating point value.

Follow the tag with a double (Basic C type).

mr_string 

A string.

Follow the tab with the string (MCHAR*) (Basic C type).

mr_bool 

A boolean.

Follow the tag with a int (Basic C type).

mr_point3 

A Point3.

Follow the tag with a Point3* (MAX SDK type).

mr_color 

A Color.

Follow the tag with a Color* (MAX SDK type).

mr_angaxis 

An AngAxis.

Follow the tag with an AngAxis* (MAX SDK type).

mr_quat 

A Quaternion.

Follow the tag with a Quat* (MAX SDK type).

mr_time 

A TimeValue, follow the tag with a TimeValue (MAX SDK type).

mr_reftarg 

A Reference Target pointer.

Follow the tag with a ReferenceTarget* (MAX SDK type).

mr_bitarray 

A bit array.

Follow the tag with a pointer to a BitArray* (MAX SDK type).

mr_pbbitmap 

A parameter block2 bitmap object.

Follow the tag with a PBBitmap* (MAX SDK type).

mr_matrix3 

A Matrix3.

Follow the tag with a Matrix3* (MAX SDK type).

mr_nurbssel 
mr_meshselbits 
mr_meshsel 
mr_subanim 
mr_animatable 
mr_classid 
mr_nurbsselbits 
mr_point4 
mr_acolor 
mr_sel 

MaxScript Type.

mr_funcall 

MaxScript Type.

mr_varname 

MaxScript Type.

mr_create 

MaxScript Type.

mr_angle 

A floating point value with a ParamDimension of a stdAngleDim.

Follow the tag with a double (MAX SDK type)

mr_percent 
mr_index 
mr_prop 
mr_name 
mr_dimfloat 

A floating point value with the specified ParamDimension.

Follow the tag with: ParamDimension*, double (MAX SDK type).

mr_dimpoint3 

A Point3 value with the specified ParamDimension.

Follow the tag with: ParamDimension*, Point3* (MAX SDK type)

mr_point2 
325  { mr_int,
326  mr_float,
327  mr_string,
328  mr_bool,
329  mr_point3,
330  mr_color,
331  mr_angaxis,
332  mr_quat,
333  mr_time,
334  mr_reftarg,
335  mr_bitarray,
336  mr_pbbitmap,
337  mr_matrix3,
338  mr_nurbssel,
340  mr_meshsel,
341  mr_subanim,
343  mr_classid,
345  mr_point4,
346  mr_acolor,
347  mr_sel,
348  mr_funcall,
349  mr_varname,
350  mr_create,
351  mr_angle,
352  mr_percent,
353  mr_index,
354  mr_prop,
355  mr_name,
356  mr_dimfloat,
357  mr_dimpoint3,
358  mr_point2,
359  };
Definition: macrorec.h:345
Definition: macrorec.h:344
Definition: macrorec.h:340
A parameter block2 bitmap object.
Definition: macrorec.h:336
A Point3 value with the specified ParamDimension.
Definition: macrorec.h:357
A bit array.
Definition: macrorec.h:335
Definition: macrorec.h:339
Definition: macrorec.h:353
A TimeValue, follow the tag with a TimeValue (MAX SDK type).
Definition: macrorec.h:333
Definition: macrorec.h:343
An AngAxis.
Definition: macrorec.h:331
Definition: macrorec.h:352
A floating point value with the specified ParamDimension.
Definition: macrorec.h:356
Definition: macrorec.h:354
Definition: macrorec.h:338
A Point3.
Definition: macrorec.h:329
Definition: macrorec.h:342
Definition: macrorec.h:341
Definition: macrorec.h:346
A floating point value with a ParamDimension of a stdAngleDim.
Definition: macrorec.h:351
MaxScript Type.
Definition: macrorec.h:348
Definition: macrorec.h:355
MaxScript Type.
Definition: macrorec.h:347
Definition: macrorec.h:358
MaxScript Type.
Definition: macrorec.h:350
A Color.
Definition: macrorec.h:330
An integer.
Definition: macrorec.h:325
A Quaternion.
Definition: macrorec.h:332
A Matrix3.
Definition: macrorec.h:337
A boolean.
Definition: macrorec.h:328
MaxScript Type.
Definition: macrorec.h:349
A floating point value.
Definition: macrorec.h:326
A string.
Definition: macrorec.h:327
A Reference Target pointer.
Definition: macrorec.h:334

Function Documentation

ScripterExport void InitMacroRecorder ( )

This global function is used internally to initialize the macro recorder and should not be called by plug-in developers.

ScripterExport const MCHAR* command_name_from_code ( int  com)

This global function is used internally to convert from a command id to the corresponding maxscript command name.

Variable Documentation

ScripterExport MacroRecorder* macroRecorder