3ds Max C++ API Reference
|
#include "../kernel/value.h"
#include "../foundation/collection.h"
#include "../../3dsmaxport.h"
#include "../../buildver.h"
#include "../../object.h"
#include "../../surf_api.h"
#include "../../tvnode.h"
#include "../../triobj.h"
#include "../../splshape.h"
#include "../protocols/timefunctions.inl"
#include "../protocols/node.inl"
#include "../protocols/arrays.inl"
#include "../macros/define_implementations.h"
#include "../protocols/atmospherics.inl"
#include "../protocols/xrefs.inl"
Classes | |
class | MAXWrapper |
struct | parm_desc |
struct | superclass_table |
class | MAXSuperClass |
struct | class_key |
struct | class_table |
class | MAXClass |
class | FindMAXWrapperEnum |
class | MAXNode |
class | MAXNodeChildrenArray |
class | MAXObject |
class | MAXPB2ArrayParam |
class | MAXModifier |
class | MAXModifierArray |
class | MAXControl |
class | MAXSubAnim |
class | MAXRefTarg |
class | MAXTVNode |
class | TrackViewPickValue |
class | MAXTVUtility |
class | MAXMeshClass |
class | MeshValue |
class | MAXBezierShapeClass |
class | BezierShapeValue |
class | MAXAtmospheric |
class | MAXEffect |
class | MAXMultiPassCameraEffect |
class | MAXShadowType |
class | MAXRenderer |
class | MAXCustAttrib |
class | MAXCustAttribArray |
class | CHTimeChangeCallback |
class | CHRedrawViewsCallback |
class | ChangeHandler |
class | MAXRootNode |
struct | node_map |
struct | node_find |
struct | node_get |
class | ConvertToRestore |
struct | gbuff_chan_code |
class | AssignControllerRestore |
class | NodeTab |
class | MAXSceneXRef |
class | MAXRootScene |
Typedefs | |
using | maker_fn = Value *(*)(MAXClass *cls, ReferenceTarget *obj, Value **arglist, int count) |
Enumerations | |
enum | metadata_flag : byte { accessors = 1 , fns , paramblock , paramblock2 } |
enum | parm_desc_flags : byte { PD_NO_INIT = 0x01 , PD_LOCAL_DUP = 0x02 , PD_HAS_LOCAL_DUPS = 0x04 , PD_SHOWN = 0x08 } |
enum | metadata_flags { md_use_getref = 0x0001 , md_use_getref0 = 0x0002 , md_use_getref1 = 0x0004 , md_no_create = 0x0008 , md_no_access = 0x0010 , md_direct_index = 0x0020 , md_new_plugin = 0x0040 , md_auto_parms = 0x0080 , md_name_clash = 0x0100 , md_initialized = 0x0200 , md_no_cd = 0x0400 , md_was_new_plugin = 0x0800 , md_needs_localization = 0x1000 } |
enum | { TYPE_POINT3_ANGLE = TYPE_USER + 128 , TYPE_POINT3_PCNT } |
enum | GetINodeTabResult { ResultOk , ErrSelectionEmpty , ErrRequireNodes } |
#define MESH_READ_ACCESS 0 |
#define MESH_WRITE_ACCESS 1 |
#define MESH_BASE_OBJ 2 |
#define BEZIERSHAPE_READ_ACCESS 0 |
#define BEZIERSHAPE_WRITE_ACCESS 1 |
#define BEZIERSHAPE_BASE_OBJ 2 |
#define check_for_deletion_test | ( | ) |
#define check_for_deletion | ( | ) | if (check_for_deletion_test()) throw RuntimeError (get_deleted_obj_err_message(), class_name()); |
#define deletion_check_test | ( | val | ) |
#define deletion_check | ( | val | ) | if (deletion_check_test(val)) throw RuntimeError (get_deleted_obj_err_message(), (val)->class_name()); |
#define def_generic | ( | fn, | |
name | |||
) | ScripterExport Value* fn##_vf(Value** arglist, int arg_count) |
#define def_generic_debug_ok | ( | fn, | |
name | |||
) | ScripterExport Value* fn##_vf(Value** arglist, int arg_count) |
#define def_property | ( | p | ) |
#define def_prop_getter | ( | p | ) | ScripterExport Value* get_##p(Value** arg_list, int count) |
#define def_prop_setter | ( | p | ) | ScripterExport Value* set_##p(Value** arg_list, int count) |
#define def_2_prop_path | ( | p1, | |
p2 | |||
) |
#define def_nested_prop | ( | p1 | ) |
#define def_time_fn | ( | _fn | ) | ScripterExport Value* _fn##_vf(Value** arglist, int arg_count) |
#define def_time_fn | ( | _fn | ) | ScripterExport Value* _fn(Animatable* anim, Value** arglist, int arg_count) |
#define NO_TRANSLATE 0x0001 |
#define NO_SCALE 0x0002 |
#define ctrl_to_current_coordsys_rotate | ( | p | ) | ctrl_to_current_coordsys(p, NO_TRANSLATE + NO_SCALE) |
#define ctrl_from_current_coordsys_rotate | ( | p | ) | ctrl_from_current_coordsys(p, NO_TRANSLATE + NO_SCALE) |
#define object_to_current_coordsys_rotate | ( | p | ) | object_to_current_coordsys(p, NO_TRANSLATE + NO_SCALE) |
#define object_from_current_coordsys_rotate | ( | p | ) | object_from_current_coordsys(p, NO_TRANSLATE + NO_SCALE) |
#define world_to_current_coordsys_rotate | ( | p | ) | world_to_current_coordsys(p, NO_TRANSLATE + NO_SCALE) |
#define world_from_current_coordsys_rotate | ( | p | ) | world_from_current_coordsys(p, NO_TRANSLATE + NO_SCALE) |
#define object_to_current_coordsys_scaleRotate | ( | p | ) | object_to_current_coordsys(p, NO_TRANSLATE) |
#define object_from_current_coordsys_scaleRotate | ( | p | ) | object_from_current_coordsys(p, NO_TRANSLATE) |
#define is_maxsuperclass | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXSuperClass)) |
#define SC_SUPERCLASS_INITED 0x0001 |
#define SC_NON_REFTARG 0x0002 |
#define is_maxclass | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXClass)) |
#define MAXWRAPPER_CACHE_SIZE 2048 |
#define maxwrapper_cache_get | ( | _mw_class, | |
_mw_ref, | |||
_mw_var, | |||
_ce_var | |||
) |
#define is_node | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXNode)) |
#define INODE_CLASS_ID Class_ID(BASENODE_CLASS_ID, 0) /* INode class ID for MAXScript metadata table indexing */ |
#define INODE_SUPERCLASS_ID BASENODE_CLASS_ID |
#define is_nodechildrenarray | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXNodeChildrenArray)) |
#define is_maxobject | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXObject)) |
#define is_tab_param | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXPB2ArrayParam)) |
#define is_modifier | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXModifier)) |
#define REFMSG_MAXCONTROL_NOT_NEW REFMSG_USER + 0x4af551aa |
RefMessage sent by Controls to tell MAXControl values that they are not new.
Clears flag bit MAX_CTRL_NEW The hTarg argument is the Control being operated on
#define is_controller | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXControl)) |
#define MAX_CTRL_NO_DIM 0x01 |
#define MAX_CTRL_NEW 0x02 |
#define is_subAnim | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXSubAnim)) |
#define is_trackviewpick | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(TrackViewPickValue)) |
#define is_mesh | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MeshValue)) |
#define is_beziershape | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(BezierShapeValue)) |
#define is_custattrib | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXCustAttrib)) |
#define CH_BROKEN 0x0001 |
#define CH_BUSY 0x0002 |
#define CH_NOTIFIED 0x0004 |
#define CH_DELETE 0x0008 |
#define CH_DISABLED 0x0010 |
#define is_rootnode | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MAXRootNode)) |
#define NM_INVERT 0x0001 |
#define NM_SELECT 0x0002 |
#define NM_GET 0x0004 |
#define NM_MXS_FN 0x0008 |
enum metadata_flag : byte |
Enumerator | |
---|---|
accessors | |
fns | |
paramblock | |
paramblock2 |
enum parm_desc_flags : byte |
enum metadata_flags |
anonymous enum |
Enumerator | |
---|---|
TYPE_POINT3_ANGLE | |
TYPE_POINT3_PCNT |
enum GetINodeTabResult |
Enumerator | |
---|---|
ResultOk | |
ErrSelectionEmpty | |
ErrRequireNodes |
ScripterExport const MCHAR * get_deleted_obj_err_message | ( | ) |
ScripterExport MAXSuperClass * lookup_MAXSuperClass | ( | SClass_ID | scid | ) |
Value * make_max_node | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_object | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_light | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_camera | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_modifier | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_material | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_texturemap | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_mtlbase | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_system | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_helper | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_controller | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_atmospheric | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_effect | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_mpassCamEffect | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_filter | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_shadow | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_reftarg | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * no_max_maker | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_renderer | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
Value * make_max_custattrib | ( | MAXClass * | cls, |
ReferenceTarget * | obj, | ||
Value ** | arg_list, | ||
int | count | ||
) |
ScripterExport MAXClass * lookup_MAXClass | ( | Class_ID * | cid, |
SClass_ID | scid, | ||
bool | make_new_if_missing = false |
||
) |
|
inline |
|
inline |
ScripterExport void InvalidateNodeRect | ( | INode * | node, |
TimeValue | t | ||
) |
ScripterExport GetINodeTabResult GetINodeTabFromValue | ( | Value * | val, |
INodeTab & | nodeTab, | ||
INodeTab ** | pResult | ||
) |
Value * get_subanim_property | ( | Animatable * | anim, |
Value * | prop | ||
) |
Value * get_subanim_property | ( | Animatable * | anim, |
int | i | ||
) |
Value * set_subanim_property | ( | Animatable * | anim, |
Value * | prop, | ||
Value * | val | ||
) |
Value * set_subanim_property | ( | Animatable * | anim, |
int | i, | ||
Value * | val | ||
) |
BOOL set_subanim_controller | ( | Animatable * | anim, |
Value * | prop, | ||
Control * | newc, | ||
MAXControl * | newcv | ||
) |
Control * find_subanim_controller | ( | Animatable * | anim, |
Value * | prop, | ||
ParamDimension ** | dim | ||
) |
void deselect_if_motion_panel_open | ( | ) |
ScripterExport Value * collect_nodes | ( | Value ** | arg_list, |
int | count | ||
) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |