primitives.inl

Go to the documentation of this file.
00001 /*  
00002  *      primitives.h - primitive function definitions for MAXScript
00003  *
00004  *      A Primitive is an object that is global, and doesn't necassarily
00005  *      belong it a maxscript type. 
00006  *      In this file, there are (with a few exceptions) declarations and 
00007  *      instantiations of two types of Primitives:
00008  *
00009  *      1. Visible Primitives - Usually global functions like 'pickObject'. These
00010  *          are created using the def_visible_primitive macro. 
00011  *      2. Visible Structs - These are maxscript global structs, like 'dotnet', 
00012  *          or 'callbacks'. These are different from and predate function published interfaces.
00013  *          These are created using the def_struct_primitive macro.
00014  *      
00015  *          Copyright � John Wainwright 1996
00016  *
00017  */
00018 
00019 #include "..\..\buildver.h"
00020 #pragma warning(push)
00021 #pragma warning(disable:4100)
00022 
00023 /* scripter-visible primitives */
00024 
00025     /* user input */
00026 
00027     def_visible_primitive (                 pick_object,                "pickObject");  
00028     def_visible_primitive (                 pick_point,                 "pickPoint"); 
00029     def_visible_primitive (                 get_kb_value,               "getKBValue"); 
00030     def_visible_primitive (                 get_kb_point,               "getKBPoint"); 
00031     def_visible_primitive (                 get_kb_line,                "getKBLine"); 
00032     def_visible_primitive (                 get_kb_char,                "getKBChar"); 
00033     def_visible_primitive (                 redraw_views,               "redrawViews"); 
00034     def_visible_primitive (                 pick_offset_distance,       "pickOffsetDistance"); 
00035     def_visible_primitive (                 clear_listener,             "clearListener"); 
00036     def_visible_primitive (                 get_listener_sel,           "getListenerSel");
00037     def_visible_primitive (                 set_listener_sel,           "setListenerSel");
00038     def_visible_primitive (                 get_listener_sel_text,      "getListenerSelText");
00039     def_visible_primitive (                 set_listener_sel_text,      "setListenerSelText");
00040 
00041     /* command-line debugger */
00042 
00043     def_visible_primitive_debug_ok (        dbg_break,                  "break");
00044     def_visible_primitive_debug_ok (        show_stack,                 "stack");
00045     def_visible_primitive_debug_ok (        show_locals,                "locals");
00046     def_visible_primitive_debug_ok (        dbg_go,                     "go");
00047     def_visible_primitive_debug_ok (        show_threads,               "threads");
00048     def_visible_primitive_debug_ok (        heapchk,                    "heapCheck");
00049     def_visible_primitive_debug_ok (        GetCurrentThreadId,         "GetCurrentThreadId");
00050     def_visible_primitive          (        maxscript_assert,           "assert");
00051 
00052     /* max file I/O */
00053     
00054     def_visible_primitive (                 load_max_file,              "loadMaxFile");
00055     def_visible_primitive (                 merge_max_file,             "mergeMaxFile");
00056     def_visible_primitive (                 get_max_file_object_names,  "getMAXFileObjectNames");
00057     def_visible_primitive (                 save_max_file,              "saveMaxFile");
00058     def_visible_primitive (                 save_nodes,                 "saveNodes");
00059     def_visible_primitive (                 reset_max_file,             "resetMaxFile");
00060     def_visible_primitive (                 hold_max_file,              "holdMaxFile");
00061     def_visible_primitive (                 fetch_max_file,             "fetchMaxFile");
00062     def_visible_primitive (                 import_file,                "importFile");
00063     def_visible_primitive (                 export_file,                "exportFile");
00064 
00065     def_visible_primitive (                 load_material_library,      "loadMaterialLibrary");
00066 #ifndef NO_MATLIB_SAVING // orb 01-09-2002
00067 #ifndef USE_CUSTOM_MATNAV // orb 08-23-2001 removing mtl lib saving from maxscript
00068     def_visible_primitive (                 save_material_library,      "saveMaterialLibrary");
00069 #endif
00070 #endif
00071 
00072     def_visible_primitive (                 load_temp_material_library,     "loadTempMaterialLibrary");
00073 #ifndef NO_MATLIB_SAVING // orb 01-09-2002
00074 #ifndef USE_CUSTOM_MATNAV // orb 08-23-2001 removing mtl lib saving from maxscript
00075     def_visible_primitive (                 save_temp_material_library,     "saveTempMaterialLibrary");
00076 #endif
00077 #endif
00078 
00079     def_visible_primitive_debug_ok (        get_medit_material,         "getMeditMaterial");
00080     def_visible_primitive (                 set_medit_material,         "setMeditMaterial");
00081 
00082     def_visible_primitive (                 quit_max,                   "quitMax");
00083 
00084     /* max animation */
00085     
00086     def_visible_primitive (                 play_animation,             "playAnimation");
00087     def_visible_primitive (                 stop_animation,             "stopAnimation");
00088 
00089     /* text file I/O */
00090 
00091     def_visible_primitive (                 open_file,                  "openfile");
00092     def_visible_primitive (                 create_file,                "createfile");
00093     def_visible_primitive (                 open_encrypted,             "openEncryptedFile");
00094     def_visible_primitive (                 file_in,                    "filein");
00095     def_visible_primitive_debug_ok (        format,                     "format");
00096     def_visible_primitive_debug_ok (        open_log,                   "openlog");
00097     def_visible_primitive_debug_ok (        close_log,                  "closelog");
00098     def_visible_primitive_debug_ok (        flush_log,                  "flushlog");
00099 
00100     def_visible_primitive (                 get_open_filename,          "getOpenFileName");
00101     def_visible_primitive (                 get_save_filename,          "getSaveFileName");
00102     def_visible_primitive (                 get_save_path,              "getSavePath");
00103     def_visible_primitive (                 filename_from_path,         "filenameFromPath");
00104 
00105     def_visible_primitive_debug_ok (        get_files,                  "getFiles");
00106     def_visible_primitive_debug_ok (        get_directories,            "getDirectories");
00107     def_visible_primitive_debug_ok (        delete_file,                "deleteFile");
00108     def_visible_primitive_debug_ok (        rename_file,                "renameFile");
00109     def_visible_primitive_debug_ok (        copy_file,                  "copyFile");
00110     def_visible_primitive_debug_ok (        make_dir,                   "makeDir");
00111     def_visible_primitive_debug_ok (        get_filename_path,          "getFilenamePath");
00112     def_visible_primitive_debug_ok (        get_filename_file,          "getFilenameFile");
00113     def_visible_primitive_debug_ok (        get_filename_type,          "getFilenameType");
00114     def_visible_primitive_debug_ok (        get_file_mod_date,          "getFileModDate");
00115     def_visible_primitive_debug_ok (        get_file_create_date,       "getFileCreateDate");
00116     def_visible_primitive_debug_ok (        get_file_attribute,         "getFileAttribute");
00117     def_visible_primitive_debug_ok (        set_file_attribute,         "setFileAttribute");
00118 
00119     def_visible_primitive (                 edit_script,                "edit");
00120     def_visible_primitive (                 new_script,                 "newScript");
00121 
00122     /* rendering */
00123 
00124     def_visible_primitive (                 render,                     "render");
00125 
00126     /* noise functions */
00127 
00128     def_visible_primitive_debug_ok (        noise3,                     "noise3");
00129     def_visible_primitive_debug_ok (        noise4,                     "noise4");
00130     def_visible_primitive_debug_ok (        turbulence,                 "turbulence");
00131     def_visible_primitive_debug_ok (        fractalNoise,               "fractalNoise");
00132 
00133 #ifndef NO_ATMOSPHERICS     // russom - 04/11/02
00134     /* atmospherics */
00135 
00136     def_visible_primitive (                 addAtmospheric,             "addAtmospheric");
00137     def_visible_primitive (                 setAtmospheric,             "setAtmospheric");
00138     def_visible_primitive (                 getAtmospheric,             "getAtmospheric");
00139     def_visible_primitive (                 deleteAtmospheric,          "deleteAtmospheric");
00140     def_visible_primitive (                 editAtmospheric,            "editAtmospheric"); // RK: Added this
00141 #endif // NO_ATMOSPHERICS
00142 
00143 #ifndef NO_RENDEREFFECTS    // russom - 03/26/02
00144     /* effects */ // RK: Added this
00145 
00146     def_visible_primitive (                 addEffect,                  "addEffect");
00147     def_visible_primitive (                 setEffect,                  "setEffect");
00148     def_visible_primitive (                 getEffect,                  "getEffect");
00149     def_visible_primitive (                 deleteEffect,               "deleteEffect");
00150     def_visible_primitive (                 editEffect,                 "editEffect");
00151 #endif // NO_RENDEREFFECTS
00152 
00153     /* trackview nodes */
00154 
00155     def_visible_primitive (                 newTrackViewNode,           "newTrackViewNode");
00156     def_visible_primitive (                 deleteTrackViewNode,        "deleteTrackViewNode");
00157     def_visible_primitive (                 addTrackViewController,     "addTrackViewController");
00158     def_visible_primitive (                 deleteTrackViewController,  "deleteTrackViewController");
00159 
00160     /* CUI */
00161 #ifndef NO_CUI  // russom - 02/12/01
00162     def_struct_primitive (                  cui_setConfigFile,          cui,            "setConfigFile");
00163     def_struct_primitive (                  cui_saveConfig,             cui,            "saveConfig");
00164     def_struct_primitive (                  cui_saveConfigAs,           cui,            "saveConfigAs");
00165     def_struct_primitive (                  cui_loadConfig,             cui,            "loadConfig");
00166     def_struct_primitive (                  cui_getConfigFile,          cui,            "getConfigFile");
00167 #endif // NO_CUI
00168     def_struct_primitive_debug_ok (         cui_getDir,                 cui,            "getDir");
00169     def_struct_primitive (                  cui_expertModeOn,           cui,            "expertModeOn");
00170     def_struct_primitive (                  cui_expertModeOff,          cui,            "expertModeOff");
00171     def_struct_primitive (                  cui_getExpertMode,          cui,            "getExpertMode");
00172 
00173     /* macro scripts */
00174     
00175     def_struct_primitive (                  run_macro,                  macros,         "run");
00176     def_struct_primitive (                  edit_macro,                 macros,         "edit");
00177     def_struct_primitive (                  new_macro,                  macros,         "new");
00178     def_struct_primitive (                  load_macros,                macros,         "load");
00179     def_struct_primitive (                  list_macros,                macros,         "list");
00180 
00181     /* track view window access */
00182     
00183     def_struct_primitive (                  tvw_open,                   trackView,      "open");
00184     def_struct_primitive (                  tvw_zoomSelected,           trackView,      "zoomSelected");
00185     def_struct_primitive (                  tvw_close,                  trackView,      "close");
00186     def_struct_primitive (                  tvw_numTrackViews,          trackView,      "numTrackViews");
00187     def_struct_primitive (                  tvw_getTrackViewName,       trackView,      "getTrackViewName");
00188     def_struct_primitive (                  tvw_setFilter,              trackView,      "setFilter");
00189     def_struct_primitive (                  tvw_clearFilter,            trackView,      "clearFilter");
00190 // LAM 4/1/00 - defined in MXSAgni
00191 //  def_struct_primitive (                  tvw_pickTrackDlg,           trackView,  "pickTrackDlg");
00192 
00193     /* schematic view window access */
00194 #ifndef NO_SCHEMATICVIEW
00195     def_struct_primitive (                  svw_open,                   schematicView,  "open");
00196     def_struct_primitive (                  svw_zoomSelected,           schematicView,  "zoomSelected");
00197     def_struct_primitive (                  svw_close,                  schematicView,  "close");
00198     def_struct_primitive (                  svw_numSchematicViews,      schematicView,  "numSchematicViews");
00199     def_struct_primitive (                  svw_getSchematicViewName,   schematicView,  "getSchematicViewName");
00200 #endif // NO_SCHEMATICVIEW
00201 
00202     /* asset manager access (                   should be filled out and moved into asset manager eventually) */
00203     def_struct_primitive (                  ab_open,                    assetBrowser,   "open");
00204     def_struct_primitive (                  ab_gotoURL,                 assetBrowser,   "gotoURL");
00205 
00206     /* modifier panel control */
00207 
00208     def_struct_primitive (                  modp_setCurrentObject,      modPanel,       "setCurrentObject");
00209     def_struct_primitive (                  modp_getCurrentObject,      modPanel,       "getCurrentObject");
00210     def_struct_primitive (                  modp_getModifierIndex,      modPanel,       "getModifierIndex");
00211     def_struct_primitive (                  modp_addModToSelection,     modPanel,       "addModToSelection");
00212     def_struct_primitive (                  modp_validModifier,         modPanel,       "validModifier");
00213 
00214     def_struct_primitive (                  modp_setPinStack,           modPanel,       "setPinStack");
00215     def_struct_primitive (                  modp_getPinStack,           modPanel,       "getPinStack");
00216     def_struct_primitive (                  modp_isPinStackEnabled,     modPanel,       "isPinStackEnabled");
00217 
00218     /* MAX map & xref path config */
00219 
00220     def_struct_primitive (                  pathConfig_getDir,                  pathConfig,     "getDir");
00221     def_struct_primitive (                  pathConfig_setDir,                  pathConfig,     "setDir");
00222 
00223     def_struct_primitive (  pathConfig_getCurrentProjectFolder,                 pathConfig,     "getCurrentProjectFolder");
00224     def_struct_primitive (  pathConfig_setCurrentProjectFolder,                 pathConfig,     "setCurrentProjectFolder");
00225 
00226     def_struct_primitive (  pathConfig_getProjectSubDirectoryCount,             pathConfig,     "getProjectSubDirectoryCount");
00227     def_struct_primitive (  pathConfig_getProjectSubDirectory,                  pathConfig,     "getProjectSubDirectory");
00228     def_struct_primitive (  pathConfig_addProjectDirectoryCreateFilter,         pathConfig,     "addProjectDirectoryCreateFilter");
00229     def_struct_primitive (  pathConfig_removeAllProjectDirectoryCreateFilters,  pathConfig,     "removeAllProjectDirectoryCreateFilters");
00230     def_struct_primitive (  pathConfig_doProjectSetupSteps,                     pathConfig,     "doProjectSetupSteps");
00231     def_struct_primitive (  pathConfig_doProjectSetupStepsUsingDirectory,       pathConfig,     "doProjectSetupStepsUsingDirectory");
00232 
00233     def_struct_primitive (  pathConfig_isProjectFolder,                         pathConfig,     "isProjectFolder");
00234     def_struct_primitive (  pathConfig_getProjectFolderPath,                    pathConfig,     "getProjectFolderPath");
00235     def_struct_primitive (  pathConfig_getCurrentProjectFolderPath,             pathConfig,     "getCurrentProjectFolderPath");
00236 
00237     // -- functions for working with paths & relative paths
00238     def_struct_primitive (  pathConfig_isAbsolutePath,              pathConfig, "isAbsolutePath");
00239     def_struct_primitive (  pathConfig_isLegalPath,                 pathConfig, "isLegalPath");
00240     def_struct_primitive (  pathConfig_isRootPath,                  pathConfig, "isRootPath");
00241     def_struct_primitive (  pathConfig_isUncPath,                   pathConfig, "isUncPath");
00242     def_struct_primitive (  pathConfig_isUncSharePath,              pathConfig, "isUncSharePath");
00243     def_struct_primitive (  pathConfig_isPathRootedAtBackslash,     pathConfig, "isPathRootedAtBackslash");
00244     def_struct_primitive (  pathConfig_isPathRootedAtDriveLetter,   pathConfig, "isPathRootedAtDriveLetter");
00245     def_struct_primitive (  pathConfig_pathsResolveEquivalent,      pathConfig, "pathsResolveEquivalent");
00246     def_struct_primitive (  pathConfig_appendPath,                  pathConfig, "appendPath");
00247     def_struct_primitive (  pathConfig_stripPathToTopParent,        pathConfig, "stripPathToTopParent");
00248     def_struct_primitive (  pathConfig_removePathTopParent,         pathConfig, "removePathTopParent");
00249     def_struct_primitive (  pathConfig_stripPathToLeaf,             pathConfig, "stripPathToLeaf");
00250     def_struct_primitive (  pathConfig_removePathLeaf,              pathConfig, "removePathLeaf");
00251     def_struct_primitive (  pathConfig_resolvePathSymbols,          pathConfig, "resolvePathSymbols");
00252     def_struct_primitive (  pathConfig_normalizePath,               pathConfig, "normalizePath");
00253     def_struct_primitive (  pathConfig_convertPathToLowerCase,      pathConfig, "convertPathToLowerCase");
00254     def_struct_primitive (  pathConfig_convertPathToRelativeTo,     pathConfig, "convertPathToRelativeTo");
00255     def_struct_primitive (  pathConfig_convertPathToUnc,            pathConfig, "convertPathToUnc");
00256     def_struct_primitive (  pathConfig_convertPathToAbsolute,       pathConfig, "convertPathToAbsolute");
00257     
00258     def_struct_primitive (                  pathConfig_isUsingProfileDirectories,   pathConfig,     "isUsingProfileDirectories");
00259     def_struct_primitive (                  pathConfig_isUsingRoamingProfiles,      pathConfig,     "isUsingRoamingProfiles");
00260 
00261     def_struct_primitive (                  pathConfig_LoadFromPathConfigFile,  pathConfig,         "Load");
00262     def_struct_primitive (                  pathConfig_MergeFromPathConfigFile, pathConfig,         "Merge");
00263     def_struct_primitive (                  pathConfig_SaveToPathConfigFile,    pathConfig,         "SaveTo");
00264 
00265     def_struct_primitive (                  mapPaths_add,               pathConfig.mapPaths,        "add");
00266     def_struct_primitive (                  mapPaths_count,             pathConfig.mapPaths,        "count");
00267     def_struct_primitive (                  mapPaths_get,               pathConfig.mapPaths,        "get");
00268     def_struct_primitive (                  mapPaths_delete,            pathConfig.mapPaths,        "delete");
00269     def_struct_primitive (                  mapPaths_getFullFilePath,   pathConfig.mapPaths,        "getFullFilePath");
00270     def_struct_primitive (                  xrefPaths_add,              pathConfig.xrefPaths,       "add");
00271     def_struct_primitive (                  xrefPaths_count,            pathConfig.xrefPaths,       "count");
00272     def_struct_primitive (                  xrefPaths_get,              pathConfig.xrefPaths,       "get");
00273     def_struct_primitive (                  xrefPaths_delete,           pathConfig.xrefPaths,       "delete");
00274     def_struct_primitive (                  xrefPaths_getFullFilePath,  pathConfig.xrefPaths,       "getFullFilePath");
00275     def_struct_primitive (                  sessionPaths_add,           pathConfig.sessionPaths,    "add");
00276     def_struct_primitive (                  sessionPaths_count,         pathConfig.sessionPaths,    "count");
00277     def_struct_primitive (                  sessionPaths_get,           pathConfig.sessionPaths,    "get");
00278     def_struct_primitive (                  sessionPaths_delete,        pathConfig.sessionPaths,    "delete");
00279 
00280     def_struct_primitive (                  pluginPaths_count,          pathConfig.pluginPaths,     "count");
00281     def_struct_primitive (                  pluginPaths_get,            pathConfig.pluginPaths,     "get");
00282 
00283     def_struct_primitive (                  mapPaths_add2,              mapPaths,       "add");
00284     def_struct_primitive (                  mapPaths_count2,            mapPaths,       "count");
00285     def_struct_primitive (                  mapPaths_get2,              mapPaths,       "get");
00286     def_struct_primitive (                  mapPaths_delete2,           mapPaths,       "delete");
00287     def_struct_primitive (                  mapPaths_getFullFilePath2,  mapPaths,       "getFullFilePath");
00288     def_struct_primitive (                  xrefPaths_add2,             xrefPaths,      "add");
00289     def_struct_primitive (                  xrefPaths_count2,           xrefPaths,      "count");
00290     def_struct_primitive (                  xrefPaths_get2,             xrefPaths,      "get");
00291     def_struct_primitive (                  xrefPaths_delete2,          xrefPaths,      "delete");
00292     def_struct_primitive (                  xrefPaths_getFullFilePath2, xrefPaths,      "getFullFilePath");
00293     def_struct_primitive (                  sessionPaths_add2,          sessionPaths,   "add");
00294     def_struct_primitive (                  sessionPaths_count2,        sessionPaths,   "count");
00295     def_struct_primitive (                  sessionPaths_get2,          sessionPaths,   "get");
00296     def_struct_primitive (                  sessionPaths_delete2,       sessionPaths,   "delete");
00297 
00298     def_struct_primitive (                  pluginPaths_count2,         pluginPaths,    "count");
00299     def_struct_primitive (                  pluginPaths_get2,           pluginPaths,    "get");
00300 
00301     /* tool modes */
00302 
00303     def_struct_primitive (                  toolMode_uniformScale,      toolMode,       "uniformScale");
00304     def_struct_primitive (                  toolMode_nonUniformScale,   toolMode,       "nonUniformScale");
00305     def_struct_primitive (                  toolMode_squashScale,       toolMode,       "squashScale");
00306     def_struct_primitive (                  toolMode_coordsys,          toolMode,       "coordsys");
00307     def_struct_primitive (                  toolMode_pivotCenter,       toolMode,       "pivotCenter");
00308     def_struct_primitive (                  toolMode_selectionCenter,   toolMode,       "selectionCenter");
00309     def_struct_primitive (                  toolMode_transformCenter,   toolMode,       "transformCenter");
00310 
00311     /* utils */
00312 
00313     def_visible_generic_debug_ok (          show_interfaces,            "showInterfaces"); // LAM: 06/29/00
00314     def_visible_generic_debug_ok (          show_interface,             "showInterface");  // LAM: 08/29/00
00315     def_visible_generic_debug_ok (          get_interfaces,             "getInterfaces");
00316     def_visible_generic_debug_ok (          get_interface,              "getInterface");
00317     def_visible_primitive_debug_ok (        show_class,                 "showClass");
00318     def_visible_generic_debug_ok (          show_props,                 "showProperties");
00319     def_visible_generic_debug_ok (          show_methods,               "showMethods");
00320     def_visible_generic_debug_ok (          show_events,                "showEvents");
00321     def_visible_generic_debug_ok (          get_props,                  "getPropNames");
00322     def_visible_primitive_debug_ok (        has_prop,                   "hasProperty");
00323     def_visible_primitive_debug_ok (        is_prop,                    "isProperty");
00324     def_visible_generic (                   create_instance,            "createInstance");
00325     def_visible_primitive_debug_ok (        getproperty,                "getProperty");
00326     def_visible_primitive (                 setproperty,                "setProperty");
00327     def_visible_primitive_debug_ok (        apropos,                    "apropos");
00328     def_visible_generic_debug_ok (          exprForMAXObject,           "exprForMAXObject");
00329     def_visible_generic_debug_ok (          getSubAnim,                 "getSubAnim");
00330     def_visible_generic_debug_ok (          getSubAnimName,             "getSubAnimName");
00331     def_visible_generic_debug_ok (          getSubAnimNames,            "getSubAnimNames");
00332     def_visible_primitive (                 show_source,                "showSource");
00333     def_visible_generic_debug_ok (          getAppData,                 "getAppData");
00334     def_visible_generic_debug_ok (          setAppData,                 "setAppData");
00335     def_visible_generic_debug_ok (          deleteAppData,              "deleteAppData");
00336     def_visible_generic_debug_ok (          clearAllAppData,            "clearAllAppData");
00337     def_visible_generic (                   addPluginRollouts,          "addPluginRollouts");
00338     def_visible_primitive (                 startObjectCreation,        "startObjectCreation");
00339     def_visible_primitive_debug_ok (        isCreatingObject,           "isCreatingObject");
00340 //  def_visible_primitive (                 waitForToolStop,            "waitForToolStop");
00341     def_visible_generic_debug_ok (          iscompatible,               "isCompatible");
00342 
00343     def_visible_primitive (                 progressStart,              "progressStart");
00344     def_visible_primitive (                 progressUpdate,             "progressUpdate");
00345     def_visible_primitive (                 progressEnd,                "progressEnd");
00346     def_visible_primitive (                 getProgressCancel,          "getProgressCancel");
00347     def_visible_primitive (                 setProgressCancel,          "setProgressCancel");
00348 
00349     def_visible_primitive_debug_ok (        dos_command,                "DOSCommand");
00350     def_visible_primitive_debug_ok (        sleep,                      "sleep");
00351     def_visible_primitive_debug_ok (        timeStamp,                  "timeStamp");
00352 
00353     def_visible_primitive (                 open_utility,               "openUtility");
00354     def_visible_primitive (                 close_utility,              "closeUtility");
00355     def_visible_primitive (                 add_rollout,                "addRollout");
00356     def_visible_primitive (                 remove_rollout,             "removeRollout");
00357     def_visible_primitive (                 new_rollout_floater,        "newRolloutFloater");
00358     def_visible_primitive (                 close_rollout_floater,      "closeRolloutFloater");
00359 
00360     def_visible_primitive_debug_ok (        message_box,                "messageBox");
00361     def_visible_primitive (                 query_box,                  "queryBox");
00362     def_visible_primitive (                 yes_no_cancel_box,          "yesNoCancelBox");
00363 
00364     def_visible_primitive (                 set_open_scene_script,      "setOpenSceneScript");
00365     def_visible_primitive (                 set_save_scene_script,      "setSaveSceneScript");
00366 
00367     def_struct_primitive_debug_ok (         callbacks_addScript,            callbacks,      "addScript");
00368     def_struct_primitive_debug_ok (         callbacks_removeScript,         callbacks,      "removeScripts");
00369     def_struct_primitive (                  callbacks_broadcastCallback,    callbacks,      "broadcastCallback");
00370     def_struct_primitive_debug_ok (         callbacks_show,                 callbacks,      "show");
00371     def_struct_primitive_debug_ok (         callbacks_notificationParam,    callbacks,      "notificationParam");
00372 
00373     def_visible_primitive_debug_ok (        gc,                         "gc");
00374     def_visible_primitive_debug_ok (        freeSceneBitmaps,           "freeSceneBitmaps");
00375     def_visible_primitive_debug_ok (        enumerateFiles,             "enumerateFiles");
00376     def_visible_primitive_debug_ok (        setSaveRequired,            "setSaveRequired");
00377     def_visible_primitive_debug_ok (        getSaveRequired,            "getSaveRequired");
00378     def_visible_primitive_debug_ok (        clearUndoBuffer,            "clearUndoBuffer");
00379 
00380     def_visible_primitive_debug_ok (        getCurrentSelection,        "getCurrentSelection");
00381     def_visible_primitive (                 selectByName,               "selectByName");
00382     def_primitive_debug_ok (                getDollarSel,               "getDollarSel");
00383     def_primitive_debug_ok (                getCurrentScriptCtrl,       "getCurrentScriptCtrl");
00384 
00385     def_visible_primitive (                 animateVertex,              "animateVertex");
00386 
00387     def_visible_primitive (                 showTextureMap,             "showTextureMap");
00388 //To produce a filename with frame number, implemented by BMMCreateNumberedFilename()
00389     def_visible_primitive (                 createNumberedFilename,     "createNumberedFilename");
00390 //Chengqing 03/July/07 : add functions for handling texture map in hardware mode
00391     def_visible_primitive (                 showHWTextureMap,           "showHWTextureMap");
00392     def_visible_primitive (                 enableHardwareMaterial,     "enableHardwareMaterial");
00393 
00394     def_visible_primitive (                 setWaitCursor,              "setWaitCursor");
00395     def_visible_primitive (                 setArrowCursor,             "setArrowCursor");
00396 
00397     def_visible_primitive_debug_ok (        registerTimeCallback,       "registerTimeCallback");
00398     def_visible_primitive_debug_ok (        unregisterTimeCallback,     "unregisterTimeCallback");
00399     def_struct_primitive (                  mtlBrowser_browseFrom,      mtlBrowser,         "browseFrom");
00400 
00401 
00402     def_visible_primitive_debug_ok (        get_source_file_name,       "getSourceFileName");
00403     def_visible_primitive_debug_ok (        get_source_file_name_avgdlx,"getThisScriptFilename");
00404     def_visible_primitive_debug_ok (        get_source_file_offset,     "getSourceFileOffSet");
00405 
00406     /* active viewport utils */
00407 
00408     def_visible_primitive_debug_ok (        getActiveCamera,            "getActiveCamera");
00409     def_visible_primitive_debug_ok (        getScreenScaleFactor,       "getScreenScaleFactor");
00410     def_visible_primitive_debug_ok (        mapScreenToWorldRay,        "mapScreenToWorldRay");
00411     def_visible_primitive_debug_ok (        mapScreenToView,            "mapScreenToView");
00412     def_visible_primitive_debug_ok (        mapScreenToCP,              "mapScreenToCP");
00413     def_visible_primitive_debug_ok (        getCPTM,                    "getCPTM");
00414     def_visible_primitive_debug_ok (        getViewTM,                  "getViewTM");
00415     def_visible_primitive_debug_ok (        getViewSize,                "getViewSize");
00416     def_visible_primitive_debug_ok (        getViewFOV,                 "getViewFOV");
00417 
00418     def_visible_primitive (                 encryptScript,              "encryptScript");
00419     def_visible_primitive (                 encryptFile,                "encryptFile");
00420 
00421     def_visible_primitive_debug_ok (        deleteChangeHandler,        "deleteChangeHandler");
00422     def_visible_primitive_debug_ok (        deleteAllChangeHandlers,    "deleteAllChangeHandlers");
00423 
00424     /* morph objects & keys */
00425 
00426     def_visible_primitive_debug_ok (        getMKTime,                  "getMKTime");
00427     def_visible_primitive (                 setMKTime,                  "setMKTime");
00428     def_visible_primitive_debug_ok (        getMKWeight,                "getMKWeight");
00429     def_visible_primitive (                 setMKWeight,                "setMKWeight");
00430     def_visible_primitive_debug_ok (        getMKKey,                   "getMKKey");
00431     def_visible_primitive_debug_ok (        getMKKeyIndex,              "getMKKeyIndex");
00432     def_visible_primitive_debug_ok (        getMKTargetNames,           "getMKTargetNames");
00433     def_visible_primitive_debug_ok (        getMKTargetWeights,         "getMKTargetWeights");
00434 #ifndef NO_OBJECT_MORPH // russom - 10/13/01
00435     def_visible_primitive (                 createMorphObject,          "createMorphObject");
00436     def_visible_primitive (                 addMorphTarget,             "addMorphTarget");
00437     def_visible_primitive (                 setMorphTarget,             "setMorphTarget");
00438     def_visible_primitive (                 deleteMorphTarget,          "deleteMorphTarget");
00439     def_visible_primitive (                 setMorphTargetName,         "setMorphTargetName");
00440 #endif
00441 
00442     /* OLE automation */
00443 
00444     def_visible_primitive (                 register_OLE_interface,     "registerOLEInterface");
00445     def_visible_primitive (                 create_OLE_object,          "createOLEObject");
00446     def_visible_primitive_debug_ok (        release_OLE_object,         "releaseOLEObject");
00447     def_visible_primitive_debug_ok (        release_all_OLE_objects,    "releaseAllOLEObjects");
00448 
00449 #ifdef DDE_ENABLED          // enable this for R4!!
00450     /* DDE access */
00451 
00452     def_struct_primitive (                  dde_connect,                dde,        "connect");
00453     def_struct_primitive (                  dde_disconnect,             dde,        "disconnect");
00454     def_struct_primitive (                  dde_request,                dde,        "request");
00455     def_struct_primitive (                  dde_execute,                dde,        "execute");
00456     def_struct_primitive (                  dde_poke,                   dde,        "poke");
00457     def_struct_primitive (                  dde_adviseStart,            dde,        "adviseStart");
00458     def_struct_primitive (                  dde_adviseStop,             dde,        "adviseStop");
00459     def_struct_primitive (                  dde_createServer,           dde,        "createServer");
00460     def_struct_primitive (                  dde_deleteServer,           dde,        "deleteServer");
00461     def_struct_primitive (                  dde_createTopic,            dde,        "createTopic");
00462 #endif
00463 
00464     // Set Key buffer control on an animatable
00465 
00466     def_struct_primitive_debug_ok (         setKey_subAnimBufferPresent,    setKey,     "subAnimBufferPresent");
00467     def_struct_primitive_debug_ok (         setKey_bufferPresent,           setKey,     "bufferPresent");
00468     def_struct_primitive (                  setKey_subAnimCommitBuffer,     setKey,     "subAnimCommitBuffer");
00469     def_struct_primitive (                  setKey_commitBuffer,            setKey,     "commitBuffer");
00470     def_struct_primitive (                  setKey_subAnimRevertBuffer,     setKey,     "subAnimRevertBuffer");
00471     def_struct_primitive (                  setKey_revertBuffer,            setKey,     "revertBuffer");
00472 
00473     /* evaluator primitives - emitted by parser */
00474     
00475     def_primitive_debug_ok (                progn,                      "progn");
00476     def_primitive (                         max_command,                "max");
00477     def_primitive_debug_ok (                return,                     "return");
00478     def_primitive_debug_ok (                exit,                       "exit");
00479     def_primitive_debug_ok (                continue,                   "continue");
00480 
00481     def_lazy_primitive_debug_ok (           quote,                      "quote");
00482     def_lazy_primitive_debug_ok (           if,                         "if");
00483     def_lazy_primitive_debug_ok (           case,                       "case");
00484     def_lazy_primitive_debug_ok (           while,                      "while");
00485     def_lazy_primitive_debug_ok (           do,                         "do");
00486     def_lazy_primitive_debug_ok (           for,                        "for");
00487     def_lazy_primitive_debug_ok (           and,                        "and");
00488     def_lazy_primitive_debug_ok (           or,                         "or");
00489 
00490     def_lazy_primitive (                    animate_context,            "animate_context");
00491     def_lazy_primitive (                    redraw_context,             "redraw_context");
00492     def_lazy_primitive (                    pivot_context,              "pivot_context");
00493     def_lazy_primitive (                    level_context,              "level_context");
00494     def_lazy_primitive (                    time_context,               "time_context");
00495     def_lazy_primitive (                    coordsys_context,           "coordsys_context");
00496     def_lazy_primitive (                    center_context,             "center_context");
00497     def_lazy_primitive (                    undo_context,               "undo_context");
00498     def_lazy_primitive_debug_ok (           printallelements_context,   "printallelements_context");
00499     def_lazy_primitive (                    defaultactions_context,     "defaultactions_context");
00500     def_lazy_primitive (                    quiet_context,              "quiet_context");
00501 
00502     def_lazy_primitive_debug_ok (           assign,                     "=");
00503     def_lazy_primitive_debug_ok (           op_assign,                  "+=");
00504     def_lazy_primitive_debug_ok (           make_persistent,            "make_persistent");
00505 
00506     def_mapped_generic_debug_ok (           assign,                     "=");
00507     def_mapped_generic_debug_ok (           op_assign,                  "+=");
00508     def_generic_debug_ok (                  not,                        "not");
00509 
00510     def_lazy_primitive_debug_ok (           try,                        "try");
00511     def_primitive_debug_ok (                throw,                      "throw");
00512     def_visible_primitive_debug_ok (        getCurrentException,        "getCurrentException");
00513 
00514     def_lazy_primitive (                    change_handler,             "change_handler");
00515 
00516     def_visible_lazy_primitive_debug_ok (   swap,                       "swap");
00517 
00518     def_visible_primitive_debug_ok (        dependsOn,                  "dependsOn");
00519 
00520 // LAM 4/1/00 - moved from MXSAgni
00521 
00522     def_visible_primitive (                 registerRightClickMenu,             "registerRightClickMenu");
00523     def_visible_primitive (                 unregisterRightClickMenu,           "unregisterRightClickMenu");
00524     def_visible_primitive (                 unregisterAllRightClickMenus,       "unregisterAllRightClickMenus");
00525     def_visible_primitive (                 registerRedrawViewsCallback,        "registerRedrawViewsCallback");
00526     def_visible_primitive (                 unregisterRedrawViewsCallback,      "unregisterRedrawViewsCallback");
00527 //watje 7-9-00 exposes the new filter callback
00528     def_visible_primitive (                 registerSelectFilterCallback,       "registerSelectFilterCallback");
00529     def_visible_primitive (                 unregisterSelectFilterCallback,     "unregisterSelectFilterCallback");
00530 
00531 //watje 7-11-00 exposes the new display filter callback
00532     def_visible_primitive (                 registerDisplayFilterCallback,      "registerDisplayFilterCallback");
00533     def_visible_primitive (                 unregisterDisplayFilterCallback,    "unregisterDisplayFilterCallback");
00534 
00535 // LAM 7/23/02 - moved from gScript
00536     def_visible_primitive (                 AddSubRollout,              "AddSubRollout");
00537     def_visible_primitive (                 RemoveSubRollout,           "RemoveSubRollout");
00538 
00539     def_struct_primitive (                  registerDialogBar,          cui,"registerDialogBar");
00540     def_struct_primitive (                  unRegisterDialogBar,        cui,"unRegisterDialogBar");
00541     def_struct_primitive (                  dockDialogBar,              cui,"dockDialogBar");
00542     def_struct_primitive (                  floatDialogBar,             cui,"floatDialogBar");
00543     def_struct_primitive (                  getDockState,               cui,"getDockState");
00544     def_struct_primitive (                  setAppTitle,                cui,"setAppTitle");
00545 
00546     def_visible_primitive (                 CreateDialog,               "CreateDialog");
00547     def_visible_primitive (                 DestroyDialog,              "DestroyDialog");
00548     def_visible_primitive (                 SetDialogPos,               "SetDialogPos");
00549     def_visible_primitive (                 GetDialogPos,               "GetDialogPos");
00550     def_visible_primitive (                 GetDialogSize,              "GetDialogSize");
00551 
00552     def_visible_primitive (                 SetDialogBitmap,            "SetDialogBitmap");
00553     def_visible_primitive (                 GetDialogBitmap,            "GetDialogBitmap");
00554 
00555     def_visible_primitive (                 PopupMenu,                  "PopupMenu");
00556 //  def_visible_primitive (                 PopupMenuBar,               "PopupMenuBar");
00557 
00558     def_visible_primitive_debug_ok (        getNodeByName,              "getNodeByName");
00559 
00560     def_visible_primitive_debug_ok  (       setModContextBBox,          "setModContextBBox");
00561     def_visible_primitive_debug_ok  (       setModContextTM,            "setModContextTM");
00562 
00563     // --------------- CustAttrib primitives
00564 
00565     def_struct_primitive (                  ca_add,             custAttributes,         "add");
00566     def_struct_primitive (                  ca_delete,          custAttributes,         "delete");
00567     def_struct_primitive_debug_ok (         ca_count,           custAttributes,         "count");
00568     def_struct_primitive_debug_ok (         ca_get,             custAttributes,         "get");
00569     def_struct_primitive (                  ca_makeUnique,      custAttributes,         "makeUnique");
00570     def_struct_primitive_debug_ok (         ca_getDef,          custAttributes,         "getDef");
00571     def_struct_primitive_debug_ok (         ca_getDefSource,    custAttributes,         "getDefSource");
00572     def_struct_primitive_debug_ok (         ca_getDefData,      custAttributes,         "getDefData");
00573     def_struct_primitive (                  ca_setDefData,      custAttributes,         "setDefData");
00574     def_struct_primitive_debug_ok (         ca_getPBlockDefs,   custAttributes,         "getPBlockDefs");
00575     def_struct_primitive_debug_ok (         ca_getSceneDefs,    custAttributes,         "getSceneDefs");
00576     def_struct_primitive (                  ca_deleteDef,       custAttributes,         "deleteDef");
00577     def_struct_primitive_debug_ok (         ca_getDefs,         custAttributes,         "getDefs");
00578     def_struct_primitive (                  ca_redefine,        custAttributes,         "redefine");
00579     def_struct_primitive_debug_ok (         ca_getOwner,        custAttributes,         "getOwner");
00580     def_struct_primitive_debug_ok (         ca_getDefClass,     custAttributes,         "getDefClass");
00581     def_struct_primitive_debug_ok (         ca_getDefInstances, custAttributes,         "getDefInstances");
00582 
00583     //      hold manager exposure
00584 
00585     def_struct_primitive_debug_ok (         theHold_getMaxLevels,       theHold,        "getMaxUndoLevels");
00586     def_struct_primitive (                  theHold_setMaxLevels,       theHold,        "setMaxUndoLevels");
00587     def_struct_primitive_debug_ok (         theHold_getCurLevels,       theHold,        "getCurrentUndoLevels");
00588     def_visible_primitive_debug_ok (        IsUndoDisabled,             "isUndoDisabled");
00589 
00590 
00591     // --------------- symbolic pathname primitives
00592 
00593     def_struct_primitive_debug_ok (         symbolicPaths_num_paths,            symbolicPaths,          "numPaths");
00594     def_struct_primitive_debug_ok (         symbolicPaths_get_path_name,        symbolicPaths,          "getPathName");
00595     def_struct_primitive_debug_ok (         symbolicPaths_is_path_name,         symbolicPaths,          "isPathName");
00596     def_struct_primitive_debug_ok (         symbolicPaths_get_path_value,       symbolicPaths,          "getPathValue");
00597     def_struct_primitive_debug_ok (         symbolicPaths_num_user_paths,       symbolicPaths,          "numUserPaths");
00598     def_struct_primitive_debug_ok (         symbolicPaths_get_user_path_name,   symbolicPaths,          "getUserPathName");
00599     def_struct_primitive_debug_ok (         symbolicPaths_is_user_path_name,    symbolicPaths,          "isUserPathName");
00600     def_struct_primitive_debug_ok (         symbolicPaths_get_user_path_value,  symbolicPaths,          "getUserPathValue");
00601     def_struct_primitive_debug_ok (         symbolicPaths_set_user_path_value,  symbolicPaths,          "setUserPathValue");
00602     def_struct_primitive_debug_ok (         symbolicPaths_add_user_path,        symbolicPaths,          "addUserPath");
00603     def_struct_primitive_debug_ok (         symbolicPaths_remove_user_path,     symbolicPaths,          "removeUserPath");
00604     def_struct_primitive_debug_ok (         symbolicPaths_expandFileName,       symbolicPaths,          "expandFileName");
00605 
00606 #pragma warning(pop)