maxscript.h File Reference

This reference page is linked to from the following overview topics: MAXScript Functions, Calling MAXScript from C++, MAXScript Global Variables.


#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <float.h>
#include <math.h>
#include "ScripterExport.h"
#include "kernel\exceptions.h"
#include "kernel\interupts.h"
#include "..\WindowsDefines.h"
#include "..\strbasic.h"
#include "..\ref.h"
#include "..\DefaultActions.h"
#include "..\dllutilities.h"
#include "..\iFnPub.h"
#include "..\IParamm2.h"
#include "kernel\value.h"
#include "util\sceneio.h"
#include "foundation\arrays.h"
#include "foundation\hashtable.h"
#include "foundation\name.h"
#include "foundation\streams.h"
#include "foundation\strings.h"
#include "foundation\functions.h"
#include "compiler\thunks.h"
#include "kernel\MAXScript_TLS.h"
#include "macros\value_locals.h"
#include "kernel\MaxscriptTypedefs.h"

Go to the source code of this file.

Classes

struct   message_box_data
class   mxs_notify_ref_data
class   MAXScriptPrefs
class   ActiveXLicensor
class   TempQuietMode
class   TempBitmapManagerSilentMode

Defines

#define  WIN32_LEAN_AND_MEAN
#define  NOT_SUPPORTED_BY_PRODUCT(fn)   throw RuntimeError (_M("Feature not available: "), _M(#fn));
#define  END   NULL
#define  MAXSCRIPT_UTILITY_CLASS_ID   Class_ID(0x4d64858, 0x16d1751d)
#define  MAX_SCRIPT_DIR   _M("scripts")
#define  SCRIPT_AUTOLOAD_DIR   _M("Startup\\")
#define  no_mb_chars   (MB_CUR_MAX == 1)
#define  bytelen(s)   strlen(s)
#define  MXS_ADD_ROLLOUT_PAGE   (WM_USER + 0x100)
#define  MXS_DELETE_ROLLOUT_PAGE   (WM_USER + 0x101)
#define  MXS_REDRAW_VIEWS   (WM_USER + 0x102)
#define  MXS_EDIT_SCRIPT   (WM_USER + 0x103)
#define  MXS_NEW_SCRIPT   (WM_USER + 0x104)
#define  MXS_DISPLAY_BITMAP   (WM_USER + 0x105)
#define  MXS_ERROR_MESSAGE_BOX   (WM_USER + 0x106)
#define  MXS_PRINT_STRING   (WM_USER + 0x107)
#define  MXS_LISTENER_EVAL   (WM_USER + 0x108)
#define  MXS_MESSAGE_BOX   (WM_USER + 0x109)
#define  MXS_INITIALIZE_MAXSCRIPT   (WM_USER + 0x10A)
#define  MXS_KEYBOARD_INPUT   (WM_USER + 0x10B)
#define  MXS_SHOW_SOURCE   (WM_USER + 0x10C)
#define  MXS_TAKE_FOCUS   (WM_USER + 0x10D)
#define  MXS_STOP_CREATING   (WM_USER + 0x10E)
#define  MXS_CLOSE_DOWN   (WM_USER + 0x10F)
#define  MXS_STOP_EDITING   (WM_USER + 0x110)
#define  MXS_LOAD_STARTUP_SCRIPTS   (WM_USER + 0x111)
#define  MXS_EXECUTE_MACRO   (WM_USER + 0x112)
#define  MXS_RESTART_EDITING   (WM_USER + 0x113)
#define  MXS_NOTIFY_REF_DEPENDENTS   (WM_USER + 0x114)
#define  MSPLUGINCLASS_STOPEDITING   (WM_USER + 0x115)
#define  MSPLUGINCLASS_RESTARTEDITING   (WM_USER + 0x116)
#define  key_arg(key)   _get_key_arg(arg_list, count, n_##key)
#define  key_arg_or_default(key, def)   _get_key_arg_or_default(arg_list, count, n_##key##, def)
#define  int_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_int())
#define  intptr_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_intptr())
#define  float_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_float())
#define  bool_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_bool())
#define  interval_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_interval())
#define  timevalue_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_timevalue())
#define  node_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_node())
#define  string_key_arg(key, var, def)   ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_string())
#define  check_arg_count(fn, w, g)   if ((w) != (g)) throw ArgCountError (_M(#fn), w, g)
#define  check_gen_arg_count(fn, w, g)   if ((w) != (g + 1)) throw ArgCountError (_M(#fn), w, g + 1)
#define  check_arg_count_with_keys(fn, w, g)   if (!(g == w || (g > w && arg_list[w] == &keyarg_marker))) throw ArgCountError (_M(#fn), w, count_with_keys())
#define  check_gen_arg_count_with_keys(fn, w, g)   if (!(g == w || (g > w && arg_list[w-1] == &keyarg_marker))) throw ArgCountError (_M(#fn), w, count_with_keys() + 1)
#define  count_with_keys()   _count_with_keys(arg_list, count)
#define  bool_result(val)   ((val) ? &true_value : &false_value)
#define  MXS_range_check(_val, _lowerLimit, _upperLimit, _desc)
#define  mputs   thread_local(current_stdout)->puts
#define  mputch   thread_local(current_stdout)->putch
#define  mprintf   thread_local(current_stdout)->printf
#define  mflush   thread_local(current_stdout)->flush
#define  INTERRUPT_EVAL   0x0001
#define  EXIT_LISTENER   0x0002
#define  type_check(val, cl, where)   if (val->tag != class_tag(cl)) throw TypeError (where, val, &cl##_class);
#define  set_english_numerics()
#define  reset_numerics()
#define  SOURCE_STREAM_ENCRYPTED_FLAG   1

Typedefs

typedef void(*  utility_installer )(Rollout *ro)
typedef Value *(*  autocad_point_reader )(MCHAR *str)

Functions

double  EPS (float v)
double  EPS (double v)
double  EPS (int v)
double  EPS (INT64 v)
double  EPS (DWORD v)
double  EPS (short v)
void  out_of_memory ()
void  bad_delete ()
ScripterExport Value _get_key_arg (Value **arg_list, int count, Value *key_name)
ScripterExport Value _get_key_arg_or_default (Value **arg_list, int count, Value *key_name, Value *def)
ScripterExport MCHAR *  save_string (const MCHAR *str)
MCHAR  wputch (HWND w, MCHAR *buf, MCHAR *bufp, const MCHAR c)
MCHAR *  wputs (HWND w, MCHAR *buf, MCHAR *bufp, const MCHAR *str)
int  wprintf (HWND w, MCHAR *buf, MCHAR *bufp, const MCHAR *format,...)
void  wflush (HWND w, MCHAR *buf, MCHAR *bufp)
ScripterExport Object Get_Object_Or_XRef_BaseObject (Object *obj)
ScripterExport int  namify (MCHAR *n, int type, bool bStripTrailing=true)
ScripterExport void  install_utility_page (Rollout *rollout)
ScripterExport int  mxs_rand ()
ScripterExport INT64  mxs_rand64 ()
ScripterExport void  mxs_seed (int)
ScripterExport int  random_range (int from, int to)
ScripterExport INT64  random_range (INT64 from, INT64 to)
ScripterExport float  random_range (float from, float to)
ScripterExport double  random_range (double from, double to)
ScripterExport void  dlx_detaching (HINSTANCE hinstance)
ScripterExport void  define_system_global (MCHAR *name, Value *(*getter)(), Value *(*setter)(Value *))
ScripterExport void  define_system_global_replace (MCHAR *name, Value *(*getter)(), Value *(*setter)(Value *))
ScripterExport void  define_struct_global (MCHAR *name, MCHAR *struct_name, Value *(*getter)(), Value *(*setter)(Value *))
ScripterExport void  printable_name (MSTR &name)
ScripterExport void  show_source_pos ()
ScripterExport void  show_listener ()
ScripterExport void  init_MAXScript ()
ScripterExport void  set_utility_installer (utility_installer ui)
ScripterExport void  reset_utility_installer ()
ScripterExport void  error_message_box (MAXScriptException &e, const MCHAR *caption)
ScripterExport void  set_autocad_point_reader (autocad_point_reader apr)
ScripterExport BOOL  get_error_trace_back_active ()
ScripterExport void  set_error_trace_back_active (BOOL isTraceBackActive)
ScripterExport BOOL  get_error_trace_back_disabled ()
ScripterExport void  set_error_trace_back_disabled (BOOL isTraceBackDisabled)
ScripterExport int  get_error_trace_back_level ()
ScripterExport void  set_error_trace_back_level (int level)
ScripterExport void  increment_error_trace_back_level ()
ScripterExport BOOL  ExecuteMAXScriptScript (MCHAR *s, BOOL quietErrors=FALSE, FPValue *fpv=NULL)
  Function compiles and evaluates the specified string.
ScripterExport Value ExecuteScript (CharStream *source, bool *res)
ScripterExport DWORD  ProcessDefaultActionVal (Value *inpActionVal, DWORD defaultAction=DEFAULTACTIONS_LOGMSG)
ScripterExport void  listener_message (UINT iMsg, WPARAM wParam, LPARAM lParam, BOOL block_flag)
int  _count_with_keys (Value **arg_list, int count)
ScripterExport BOOL  GetPrintAllElements ()
ScripterExport BOOL  SetPrintAllElements (BOOL)
ScripterExport bool  CanChangeGroupFlags (INode *node)
ScripterExport BOOL  Find_MXS_Name_For_Obj (Animatable *obj, MSTR &name, BOOL explicitName=TRUE)
ScripterExport void  Replace_LF_with_CRLF (MSTR &string)
ScripterExport void  Replace_CRLF_with_LF (MSTR &string)
ScripterExport void  checkFileOpenModeValidity (MCHAR *mode)
ScripterExport BOOL  max_name_match (MCHAR *max_name, MCHAR *pattern, bool caseSensitive=false)
ScripterExport Bitmap CreateBitmapFromBitmapInfo (BitmapInfo &bitmapInfo)
ScripterExport int  GetStorableBitmapInfoTypeForBitmapInfoType (int type)

Variables

static const int  PROPNAME = 1
static const int  CLASSNAME = 2
static const int  DROPSPACES = 3
ScripterExport HashTable *  english_to_local
ScripterExport HashTable *  local_to_english
ScripterExport BOOL  non_english_numerics
ScripterExport Interface MAXScript_interface
ScripterExport Interface7 MAXScript_interface7
ScripterExport Interface8 MAXScript_interface8
ScripterExport Interface9 MAXScript_interface9
ScripterExport Interface11 MAXScript_interface11
ScripterExport Interface13 MAXScript_interface13
ScripterExport BOOL  escape_enabled
ScripterExport BOOL  MAXScript_detaching
ScripterExport BOOL  MAXScript_running
ScripterExport HWND  main_thread_window
ScripterExport BOOL  progress_bar_up
MAX_DEPRECATED BOOL  trace_back_active
MAX_DEPRECATED BOOL  disable_trace_back
MAX_DEPRECATED int  trace_back_levels
ScripterExport IMXSDebugger theMXSDebugger
ScripterExport HashTable *  globals
ScripterExport HashTable *  persistents
ScripterExport Listener the_listener
ScripterExport HWND  the_listener_window
ScripterExport RandGenerator ClassIDRandGenerator

Define Documentation

#define WIN32_LEAN_AND_MEAN

Definition at line 11 of file maxscript.h.

#define NOT_SUPPORTED_BY_PRODUCT (   fn )    throw RuntimeError (_M("Feature not available: "), _M(#fn));

Definition at line 65 of file maxscript.h.

#define END   NULL

Definition at line 68 of file maxscript.h.

#define MAXSCRIPT_UTILITY_CLASS_ID   Class_ID(0x4d64858, 0x16d1751d)

Definition at line 70 of file maxscript.h.

#define MAX_SCRIPT_DIR   _M("scripts")

Definition at line 71 of file maxscript.h.

#define SCRIPT_AUTOLOAD_DIR   _M("Startup\\")

Definition at line 72 of file maxscript.h.

#define no_mb_chars   (MB_CUR_MAX == 1)

Definition at line 79 of file maxscript.h.

#define bytelen (   s )    strlen(s)

Definition at line 80 of file maxscript.h.

#define MXS_ADD_ROLLOUT_PAGE   (WM_USER + 0x100)

Definition at line 93 of file maxscript.h.

#define MXS_DELETE_ROLLOUT_PAGE   (WM_USER + 0x101)

Definition at line 94 of file maxscript.h.

#define MXS_REDRAW_VIEWS   (WM_USER + 0x102)

Definition at line 95 of file maxscript.h.

#define MXS_EDIT_SCRIPT   (WM_USER + 0x103)

Definition at line 96 of file maxscript.h.

#define MXS_NEW_SCRIPT   (WM_USER + 0x104)

Definition at line 97 of file maxscript.h.

#define MXS_DISPLAY_BITMAP   (WM_USER + 0x105)

Definition at line 98 of file maxscript.h.

#define MXS_ERROR_MESSAGE_BOX   (WM_USER + 0x106)

Definition at line 99 of file maxscript.h.

#define MXS_PRINT_STRING   (WM_USER + 0x107)

Definition at line 100 of file maxscript.h.

#define MXS_LISTENER_EVAL   (WM_USER + 0x108)

Definition at line 101 of file maxscript.h.

#define MXS_MESSAGE_BOX   (WM_USER + 0x109)

Definition at line 102 of file maxscript.h.

#define MXS_INITIALIZE_MAXSCRIPT   (WM_USER + 0x10A)

Definition at line 103 of file maxscript.h.

#define MXS_KEYBOARD_INPUT   (WM_USER + 0x10B)

Definition at line 104 of file maxscript.h.

#define MXS_SHOW_SOURCE   (WM_USER + 0x10C)

Definition at line 105 of file maxscript.h.

#define MXS_TAKE_FOCUS   (WM_USER + 0x10D)

Definition at line 106 of file maxscript.h.

#define MXS_STOP_CREATING   (WM_USER + 0x10E)

Definition at line 107 of file maxscript.h.

#define MXS_CLOSE_DOWN   (WM_USER + 0x10F)

Definition at line 108 of file maxscript.h.

#define MXS_STOP_EDITING   (WM_USER + 0x110)

Definition at line 109 of file maxscript.h.

#define MXS_LOAD_STARTUP_SCRIPTS   (WM_USER + 0x111)

Definition at line 110 of file maxscript.h.

#define MXS_EXECUTE_MACRO   (WM_USER + 0x112)

Definition at line 111 of file maxscript.h.

#define MXS_RESTART_EDITING   (WM_USER + 0x113)

Definition at line 112 of file maxscript.h.

#define MXS_NOTIFY_REF_DEPENDENTS   (WM_USER + 0x114)

Definition at line 113 of file maxscript.h.

#define MSPLUGINCLASS_STOPEDITING   (WM_USER + 0x115)

Definition at line 114 of file maxscript.h.

#define MSPLUGINCLASS_RESTARTEDITING   (WM_USER + 0x116)

Definition at line 115 of file maxscript.h.

#define key_arg (   key )    _get_key_arg(arg_list, count, n_##key)

Definition at line 158 of file maxscript.h.

#define key_arg_or_default (   key,
  def 
)    _get_key_arg_or_default(arg_list, count, n_##key##, def)

Definition at line 159 of file maxscript.h.

#define int_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_int())

Definition at line 160 of file maxscript.h.

#define intptr_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_intptr())

Definition at line 161 of file maxscript.h.

#define float_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_float())

Definition at line 162 of file maxscript.h.

#define bool_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_bool())

Definition at line 163 of file maxscript.h.

#define interval_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_interval())

Definition at line 164 of file maxscript.h.

#define timevalue_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_timevalue())

Definition at line 165 of file maxscript.h.

#define node_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_node())

Definition at line 166 of file maxscript.h.

#define string_key_arg (   key,
  var,
  def 
)    ((var = _get_key_arg(arg_list, count, n_##key)) == &unsupplied ? def : var->to_string())

Definition at line 167 of file maxscript.h.

#define check_arg_count (   fn,
  w,
 
)    if ((w) != (g)) throw ArgCountError (_M(#fn), w, g)

Definition at line 169 of file maxscript.h.

#define check_gen_arg_count (   fn,
  w,
 
)    if ((w) != (g + 1)) throw ArgCountError (_M(#fn), w, g + 1)

Definition at line 170 of file maxscript.h.

#define check_arg_count_with_keys (   fn,
  w,
 
)    if (!(g == w || (g > w && arg_list[w] == &keyarg_marker))) throw ArgCountError (_M(#fn), w, count_with_keys())

Definition at line 171 of file maxscript.h.

#define check_gen_arg_count_with_keys (   fn,
  w,
 
)    if (!(g == w || (g > w && arg_list[w-1] == &keyarg_marker))) throw ArgCountError (_M(#fn), w, count_with_keys() + 1)

Definition at line 172 of file maxscript.h.

#define count_with_keys ( )    _count_with_keys(arg_list, count)

Definition at line 173 of file maxscript.h.

#define bool_result (   val )    ((val) ? &true_value : &false_value)

Definition at line 177 of file maxscript.h.

#define MXS_range_check (   _val,
  _lowerLimit,
  _upperLimit,
  _desc 
)
Value:
if (_val < _lowerLimit || _val > _upperLimit) {                 \
        MCHAR buf[256];                                             \
        MCHAR buf2[128];                                            \
        _tcscpy(buf,_desc);                                         \
        _tcscat(buf,_M(" < "));                                     \
        _sntprintf(buf2, 128, _M("%g"), EPS(_lowerLimit));          \
        _tcscat(buf,buf2);                                          \
        _tcscat(buf,_M(" or > "));                                  \
        _sntprintf(buf2, 128, _M("%g"), EPS(_upperLimit));          \
        _tcscat(buf,buf2);                                          \
        _tcscat(buf,_M(": "));                                      \
        _sntprintf(buf2, 128, _M("%g"), EPS(_val));                 \
        _tcscat(buf,buf2);                                          \
        throw RuntimeError (buf);                                   \
    }

Definition at line 182 of file maxscript.h.

#define mputs   thread_local(current_stdout)->puts

Definition at line 211 of file maxscript.h.

#define mputch   thread_local(current_stdout)->putch

Definition at line 212 of file maxscript.h.

#define mprintf   thread_local(current_stdout)->printf

Definition at line 213 of file maxscript.h.

#define mflush   thread_local(current_stdout)->flush

Definition at line 214 of file maxscript.h.

#define INTERRUPT_EVAL   0x0001

Definition at line 240 of file maxscript.h.

#define EXIT_LISTENER   0x0002

Definition at line 241 of file maxscript.h.

#define type_check (   val,
  cl,
  where 
)    if (val->tag != class_tag(cl)) throw TypeError (where, val, &cl##_class);

Definition at line 333 of file maxscript.h.

#define set_english_numerics ( )
Value:
MCHAR* locale;                                  \
    MCHAR slocale[256];                             \
    if (non_english_numerics != NULL)               \
    {                                               \
        locale = setlocale(LC_NUMERIC, NULL);       \
        _tcsncpy(slocale, locale, sizeof(slocale)/sizeof(slocale[0]));  \
        setlocale(LC_NUMERIC, "C");                 \
    }

Definition at line 336 of file maxscript.h.

#define reset_numerics ( )
Value:
if (non_english_numerics != NULL)               \
        setlocale(LC_NUMERIC, slocale);

Definition at line 346 of file maxscript.h.

#define SOURCE_STREAM_ENCRYPTED_FLAG   1

Definition at line 350 of file maxscript.h.


Typedef Documentation

typedef void(* utility_installer)(Rollout *ro)

Definition at line 263 of file maxscript.h.

typedef Value*(* autocad_point_reader)(MCHAR *str)

Definition at line 267 of file maxscript.h.


Function Documentation

double EPS ( float  v ) [inline]

Definition at line 84 of file maxscript.h.

{ return _isnan(v) ? (v) : fabs(v) < FLT_EPSILON ? 0.0 : (v); }  // small number round down for %g float printing
double EPS ( double  v ) [inline]

Definition at line 85 of file maxscript.h.

{ return _isnan(v) ? (v) : fabs(v) < DBL_EPSILON ? 0.0 : (v); }  // small number round down for %g double printing
double EPS ( int  v ) [inline]

Definition at line 86 of file maxscript.h.

{ return (double)v; }
double EPS ( INT64  v ) [inline]

Definition at line 87 of file maxscript.h.

{ return (double)v; }
double EPS ( DWORD  v ) [inline]

Definition at line 88 of file maxscript.h.

{ return (double)v; }
double EPS ( short  v ) [inline]

Definition at line 89 of file maxscript.h.

{ return (double)v; }
void out_of_memory ( )
void bad_delete ( )
ScripterExport Value* _get_key_arg ( Value **  arg_list,
int  count,
Value key_name 
)
ScripterExport Value* _get_key_arg_or_default ( Value **  arg_list,
int  count,
Value key_name,
Value def 
)
ScripterExport MCHAR* save_string ( const MCHAR *  str )
MCHAR wputch ( HWND  w,
MCHAR *  buf,
MCHAR *  bufp,
const MCHAR  c 
)
MCHAR* wputs ( HWND  w,
MCHAR *  buf,
MCHAR *  bufp,
const MCHAR *  str 
)
int wprintf ( HWND  w,
MCHAR *  buf,
MCHAR *  bufp,
const MCHAR *  format,
  ... 
)
void wflush ( HWND  w,
MCHAR *  buf,
MCHAR *  bufp 
)
ScripterExport Object* Get_Object_Or_XRef_BaseObject ( Object obj )
ScripterExport int namify ( MCHAR *  n,
int  type,
bool  bStripTrailing = true 
)
ScripterExport void install_utility_page ( Rollout *  rollout )
ScripterExport int mxs_rand ( )
ScripterExport INT64 mxs_rand64 ( )
ScripterExport void mxs_seed ( int  )
ScripterExport int random_range ( int  from,
int  to 
)
ScripterExport INT64 random_range ( INT64  from,
INT64  to 
)
ScripterExport float random_range ( float  from,
float  to 
)
ScripterExport double random_range ( double  from,
double  to 
)
ScripterExport void dlx_detaching ( HINSTANCE  hinstance )
ScripterExport void define_system_global ( MCHAR *  name,
Value *(*)()  getter,
Value *(*)(Value *)  setter 
)
ScripterExport void define_system_global_replace ( MCHAR *  name,
Value *(*)()  getter,
Value *(*)(Value *)  setter 
)
ScripterExport void define_struct_global ( MCHAR *  name,
MCHAR *  struct_name,
Value *(*)()  getter,
Value *(*)(Value *)  setter 
)
ScripterExport void printable_name ( MSTR name )
ScripterExport void show_source_pos ( )
ScripterExport void show_listener ( )
ScripterExport void init_MAXScript ( )
ScripterExport void set_utility_installer ( utility_installer  ui )
ScripterExport void reset_utility_installer ( )
ScripterExport void error_message_box ( MAXScriptException e,
const MCHAR *  caption 
)
ScripterExport void set_autocad_point_reader ( autocad_point_reader  apr )
ScripterExport BOOL get_error_trace_back_active ( )
ScripterExport void set_error_trace_back_active ( BOOL  isTraceBackActive )
ScripterExport BOOL get_error_trace_back_disabled ( )
ScripterExport void set_error_trace_back_disabled ( BOOL  isTraceBackDisabled )
ScripterExport int get_error_trace_back_level ( )
ScripterExport void set_error_trace_back_level ( int  level )
ScripterExport void increment_error_trace_back_level ( )
ScripterExport BOOL ExecuteMAXScriptScript ( MCHAR *  s,
BOOL  quietErrors = FALSE,
FPValue fpv = NULL 
)

Function compiles and evaluates the specified string.

If the string is successfully compiled and evaluated, and a pointer to an FPValue is provided, the return value is converted to an FPValue and returned through the referenced FPValue. If the string is not successfully compiled and evaluated, error messages are logged to LogSys if net rendering. If not net rendering, error messages are written to Listener or logged to LogSys.

Parameters:
MCHAR *s Points to a null-terminated string that specifies the MAXScript commands to compile and evaluate. BOOL *quietErrors If TRUE, or net rendering, errors are logged to LogSys. If FALSE and not net rendering, errors are logged to Listener. FPValue *fpv Optionally points to an FPValue. If not NULL, the result of the script evaluation is converted to an FPValue and stored in the specified FPValue.
Returns:
Returns TRUE if script was executed successfully.
ScripterExport Value* ExecuteScript ( CharStream *  source,
bool *  res 
)
ScripterExport DWORD ProcessDefaultActionVal ( Value inpActionVal,
DWORD  defaultAction = DEFAULTACTIONS_LOGMSG 
)
ScripterExport void listener_message ( UINT  iMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL  block_flag 
)
int _count_with_keys ( Value **  arg_list,
int  count 
) [inline]

Definition at line 361 of file maxscript.h.

{
    // compute # args before any key-args
    for (int i = 0; i < count; i++)
        if (arg_list[i] == (Value*)&keyarg_marker)
            return i;
    return count;
}
ScripterExport BOOL GetPrintAllElements ( )
ScripterExport BOOL SetPrintAllElements ( BOOL  )
ScripterExport bool CanChangeGroupFlags ( INode node )
ScripterExport BOOL Find_MXS_Name_For_Obj ( Animatable obj,
MSTR name,
BOOL  explicitName = TRUE 
)
ScripterExport void Replace_LF_with_CRLF ( MSTR string )
ScripterExport void Replace_CRLF_with_LF ( MSTR string )
ScripterExport void checkFileOpenModeValidity ( MCHAR *  mode )
ScripterExport BOOL max_name_match ( MCHAR *  max_name,
MCHAR *  pattern,
bool  caseSensitive = false 
)
ScripterExport Bitmap* CreateBitmapFromBitmapInfo ( BitmapInfo bitmapInfo )
ScripterExport int GetStorableBitmapInfoTypeForBitmapInfoType ( int  type )

Variable Documentation

const int PROPNAME = 1 [static]

Definition at line 227 of file maxscript.h.

const int CLASSNAME = 2 [static]

Definition at line 228 of file maxscript.h.

const int DROPSPACES = 3 [static]

Definition at line 229 of file maxscript.h.

ScripterExport HashTable* english_to_local
ScripterExport HashTable* local_to_english
MAX_DEPRECATED BOOL trace_back_active
Remarks:
Deprecated in 3ds Max 2012. Use get_error_trace_back_active or set_error_trace_back_active instead.
MAX_DEPRECATED BOOL disable_trace_back
Remarks:
Deprecated in 3ds Max 2012. Use get_error_trace_back_disabled or set_error_trace_back_disabled instead.
MAX_DEPRECATED int trace_back_levels
Remarks:
Deprecated in 3ds Max 2012. Use get_error_trace_back_level, set_error_trace_back_level or increment_error_trace_back_level instead.
ScripterExport HashTable* globals
ScripterExport HashTable* persistents