newspeoplefor developersdocumentationdownloads

nVariableServer Script Interface

nvariableserver:

Super Class:

C++ Class:

Info

Manages variable declarations. A variable declaration consists of a variable name and an associated variable fourcc code.

Commands:


declarevariable

Command Input:
s(VariableName), s(VariableFourCC)
Command Output:
i(VariableHandle)
Command Description:
Add a new variable declaration. Declaring variables is not required but the only way to get variables with both a valid name and a valid fourcc code.
Returns the variable's handle.


getnumvariables

Command Input:
v
Command Output:
i(NumVariables)
Command Description:
Get number of variable declarations.

getvariableat

Command Input:
i(VariableIndex)
Command Output:
s(VariableName), s(VariableFourCC)
Command Description:
Return the variable name and fourcc code at given index.

getfloatvariable

Command Input:
s(VarName)
Command Output:
f(Value)
Command Description:
Get float value from a global variable.

getintvariable

Command Input:
s(VarName)
Command Output:
i(Value)
Command Description:
Get integer value from a global variable.

getvectorvariable

Command Input:
s(VarName)
Command Output:
ffff(Value)
Command Description:
Get vector4 value from a global variable.

getstringvariable

Command Input:
s(VarName)
Command Output:
s(Value)
Command Description:
Get string value from a global variable.

setfloatvariable

Command Input:
s(VarName), f(Value)
Command Output:
v
Command Description:
Set float value of a global variable.

setintvariable

Command Input:
s(VarName), i(Value)
Command Output:
v
Command Description:
Set integer value of a global variable.

setvectorvariable

Command Input:
s(VarName), f(ValX), f(ValY), f(ValZ), f(ValW)
Command Output:
v
Command Description:
Set vector value of a global variable.

setstringvariable

Command Input:
s(VarName), s(Value)
Command Output:
v
Command Description:
Set string value of a global variable.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.