Classes: LayoutGeneric
From LightWave
LayoutGenericAvailability LightWave 6.0 Layout generic plug-ins can issue commands to alter the scene. They can also manipulate
scene settings at a lower level by saving, altering, and reloading scene files. Generics
also supply general- Activation Function XCALL_( int ) MyGeneric( long version, GlobalFunc *global,
LWLayoutGeneric *local, void *serverData );
The local argument to a generic's activation function is an LWLayoutGeneric. typedef struct st_LWLayoutGeneric {
int (*saveScene)(const char *file);
int (*loadScene)(const char *file, const char *name);
void *data;
LWCommandCode (*lookup) (void *, const char *cmdName);
int (*execute) (void *, LWCommandCode cmd, int argc,
const DynaValue *argv,
DynaValue *result);
int (*evaluate) (void *, const char *command);
} LWLayoutGeneric;
See the Commands pages for a complete list of the commands that can be issued in Layout, as well as a detailed explanation of the formatting of command arguments for both the execute and evaluate methods. Example The hello sample is the LightWave version of everybody's favorite "Hello, World!" program. It opens a panel with an edit field, displays messages, and issues a command. |