newspeoplefor developersdocumentationdownloads

nEnv Script Interface

nenv:

Super Class:

C++ Class:

Info

The nenv class is similar to an environment variable. Just create, set the type and value, and query it

Commands:


gettype

Command Input:
v
Command Output:
s (Type = [void int float bool string object float4])
Command Description:
Returns the datatype the variable is set to. If void is returned the variable is empty.

geti

Command Input:
v
Command Output:
i (Value)
Command Description:
Returns the content of the variable if it is an int variable. If it's not an int variable, 0 is returned and an error message is printed.

getf

Command Input:
v
Command Output:
f (Value)
Command Description:
Returns the content of the variable if it is a float variable. If it's not a float variable, 0.0 is returned and an error message is printed.

getb

Command Input:
v
Command Output:
b (Value)
Command Description:
Returns the content of the variable if it is a bool variable. If it's not a bool, false is returned and an error message is printed.

gets

Command Input:
v
Command Output:
s (Value)
Command Description:
Returns the content of the variable if it is a string variable. If it's not a string variable, "" is returned and an error message is printed.

geto

Command Input:
v
Command Output:
o (ObjectHandle)
Command Description:
Returns the content of the variable as an object handle. If it's not an object handle, NULL is returned and an error message is printed.

getf4

Command Input:
v
Command Output:
f(X), f(Y), f(Z), f(W)
Command Description:
Return content as 4D vector.

seti

Command Input:
i (Value)
Command Output:
v
Command Description:
Sets the content of the variable to the passed integer value.

setf

Command Input:
f (Value)
Command Output:
v
Command Description:
Sets the content of the variable to the passed float value.

setb

Command Input:
b (Value)
Command Output:
v
Command Description:
Sets the content of the variable to the passed boolean value.

sets

Command Input:
s (Value)
Command Output:
v
Command Description:
Sets the content of the variable to the passed string.

seto

Command Input:
s (ObjectHandle)
Command Output:
v
Command Description:
Sets the content of the variable to the passed object handle.

setf4

Command Input:
f(X), f(Y), f(Z), f(W)
Command Output:
v
Command Description:
Sets the content of the variable to a 4D vector.

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