3ds Max C++ API Reference
Loading...
Searching...
No Matches
Script Class Reference

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/include/CS/IMoFlow.h>

Inheritance diagram for Script:

Public Member Functions

BIPExport Script ()
BIPExport ~Script ()
BIPExport Scriptoperator= (const Script &P)
BIPExport int AddSnippet (Snippet *SN)
BIPExport int InsertSnippet (int index, Snippet *SN)
BIPExport int DeleteSnippet (int index)
BIPExport int Get_Backtrackframe ()
BIPExport int GetScriptItemIndex (ScriptItem *SI)
BIPExport int InsertScriptItem (int index, ScriptItem *SI)
BIPExport int GetLastTransitionIndex ()
TransitionGetLastTransition ()
int NumScriptItems ()
ScriptItemGetScriptItem (int ind)
BIPExport int IncludesSnippet (Snippet *SN)
BIPExport int IncludesTransition (Transition *TR)
void Output (MFL_IOProcessor *IOProc, bool asWChar)
void Input (MFL_IOProcessor *IOProc, MoFlow *MF, bool asWChar)
int GetStartFrame ()
void SetStartFrame (int f)
BIPExport void Set_crowd_script (crowd_script *CS)
Point3 GetStartPos ()
void SetStartPos (Point3 p)
float GetStartRot ()
void SetStartRot (float r)
const MCHARGetName () const
void SetName (const MCHAR *n)
int NumLayers ()
Layer * GetEditLayer ()
BIPExport Layer * GetLayer (int index)
BIPExport int AddLayer (Script *SCR, TimeValue t)
BIPExport void DeleteLayer (Layer *delLY)
BIPExport void SortLayer (Layer *SORTLY)
BIPExport int GetLayerIndex (Layer *LYR)
BIPExport int InsertLayer (Layer *newLY)
BIPExport void CloneLayer (Layer *orgLY, TimeValue t)
BIPExport void DeleteAllLayers ()

Public Attributes

MCHAR name [MAXSCRIPTNAME]
Point3 startpos
float startrot
int startframe
int nitems
int maxitems
ScriptItemitems
int nlayers
Layer * layers
Layer * EditLayer
Scriptnext

Additional Inherited Members

Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.

Constructor & Destructor Documentation

◆ Script()

◆ ~Script()

Member Function Documentation

◆ operator=()

BIPExport Script & operator= ( const Script & P)

◆ AddSnippet()

BIPExport int AddSnippet ( Snippet * SN)

◆ InsertSnippet()

BIPExport int InsertSnippet ( int index,
Snippet * SN )

◆ DeleteSnippet()

BIPExport int DeleteSnippet ( int index)

◆ Get_Backtrackframe()

BIPExport int Get_Backtrackframe ( )

◆ GetScriptItemIndex()

BIPExport int GetScriptItemIndex ( ScriptItem * SI)

◆ InsertScriptItem()

BIPExport int InsertScriptItem ( int index,
ScriptItem * SI )

◆ GetLastTransitionIndex()

BIPExport int GetLastTransitionIndex ( )

◆ GetLastTransition()

Transition * GetLastTransition ( )

◆ NumScriptItems()

int NumScriptItems ( )
inline
366{ return nitems; }
int nitems
Definition IMoFlow.h:347

◆ GetScriptItem()

ScriptItem * GetScriptItem ( int ind)
inline
368 { assert (ind < nitems); return &items[ind]; }
ScriptItem * items
Definition IMoFlow.h:349
#define assert(expr)
Definition assert1.h:82

◆ IncludesSnippet()

BIPExport int IncludesSnippet ( Snippet * SN)

◆ IncludesTransition()

BIPExport int IncludesTransition ( Transition * TR)

◆ Output()

void Output ( MFL_IOProcessor * IOProc,
bool asWChar )

◆ Input()

void Input ( MFL_IOProcessor * IOProc,
MoFlow * MF,
bool asWChar )

◆ GetStartFrame()

int GetStartFrame ( )
inline
373{ return startframe; }
int startframe
Definition IMoFlow.h:346

◆ SetStartFrame()

void SetStartFrame ( int f)
inline
374{ startframe = f; }

◆ Set_crowd_script()

BIPExport void Set_crowd_script ( crowd_script * CS)

◆ GetStartPos()

Point3 GetStartPos ( )
inline
376{ return startpos; }
Point3 startpos
Definition IMoFlow.h:344

◆ SetStartPos()

void SetStartPos ( Point3 p)
inline
377{ startpos = p;}

◆ GetStartRot()

float GetStartRot ( )
inline
378{ return startrot; }
float startrot
Definition IMoFlow.h:345

◆ SetStartRot()

void SetStartRot ( float r)
inline
379{ startrot = r;}

◆ GetName()

const MCHAR * GetName ( ) const
inline
380{ return name; }
MCHAR name[MAXSCRIPTNAME]
Definition IMoFlow.h:343

◆ SetName()

void SetName ( const MCHAR * n)
inline
381{ _tcsncpy_s(name, MAXSCRIPTNAME, n, MAXSCRIPTNAME-1); }
#define MAXSCRIPTNAME
Definition CSConstants.h:39

◆ NumLayers()

int NumLayers ( )
inline
384{ return nlayers; }
int nlayers
Definition IMoFlow.h:350

◆ GetEditLayer()

Layer * GetEditLayer ( )
inline
385{ return EditLayer; }
Layer * EditLayer
Definition IMoFlow.h:352

◆ GetLayer()

BIPExport Layer * GetLayer ( int index)

◆ AddLayer()

BIPExport int AddLayer ( Script * SCR,
TimeValue t )

◆ DeleteLayer()

BIPExport void DeleteLayer ( Layer * delLY)

◆ SortLayer()

BIPExport void SortLayer ( Layer * SORTLY)

◆ GetLayerIndex()

BIPExport int GetLayerIndex ( Layer * LYR)

◆ InsertLayer()

BIPExport int InsertLayer ( Layer * newLY)

◆ CloneLayer()

BIPExport void CloneLayer ( Layer * orgLY,
TimeValue t )

◆ DeleteAllLayers()

BIPExport void DeleteAllLayers ( )

Member Data Documentation

◆ name

◆ startpos

Point3 startpos

◆ startrot

float startrot

◆ startframe

int startframe

◆ nitems

int nitems

◆ maxitems

int maxitems

◆ items

ScriptItem* items

◆ nlayers

int nlayers

◆ layers

Layer* layers

◆ EditLayer

Layer* EditLayer

◆ next

Script* next