newspeoplefor developersdocumentationdownloads

nSceneNode Script Interface

nscenenode:

Super Class:

Subclasses:

C++ Class:

Info

Parent class of scene graph nodes. nSceneNode objects can form complex hierarchies and cross-hierarchy dependencies.

Commands:


addanimator

Command Input:
s(AnimatorPath)
Command Output:
v
Command Description:
Defines the relative path to an animator object, which is called to manipulate this object at render time.

removeanimator

Command Input:
s(AnimatorPath)
Command Output:
v
Command Description:
Removes an animator from the node's animator list

getnumanimators

Command Input:
v
Command Output:
i(NumAnimators)
Command Description:
Returns the number of animators attached to this object.

getanimatorat

Command Input:
i(Index)
Command Output:
s(AnimatorPath)
Command Description:
Returns relative path to animator at given index.

loadresources

Command Input:
v
Command Output:
b(status)
Command Description:
Loads resources and returns status

setlocalbox

Command Input:
f(midX), f(midY), f(midZ), f(extentX), f(extentY), f(extentZ)
Command Output:
v
Command Description:
Define the local bounding box. Shape nodes compute their bounding box automatically at load time. This method can be used to define bounding boxes for other nodes. This may be useful for higher level code like gameframeworks. Nebula itself only uses bounding boxes defined on shape nodes.

getlocalbox

Command Input:
v
Command Output:
f(midX), f(midY), f(midZ), f(extentX), f(extentY), f(extentZ)
Command Description:
Return the local bounding box.

setrenderpri

Command Input:
i(RenderPri)
Command Output:
v
Command Description:
Sets the render priority of the node. Should be between -127 and +127.

getrenderpri

Command Input:
v
Command Output:
i(RenderPri)
Command Description:
Gets the render priority of the node.

addhints

Command Input:
i(HintMask)
Command Output:
v
Command Description:
Add one or more hint flags.

clearhints

Command Input:
i(HintMask)
Command Output:
v
Command Description:
Clear one or more hint flags.

gethints

Command Input:
v
Command Output:
i(HintMask)
Command Description:
Get all currently set hint flags.

hashints

Command Input:
i(HintMask)
Command Output:
b(Success)
Command Description:
Return true if all hint flags in the mask are set.

setintattr

Command Input:
s(Name), i(Value)
Command Output:
v
Command Description:
Set an int attribute on the node.

getintattr

Command Input:
s(Name)
Command Output:
i(Value)
Command Description:
Get an int attribute from the node.

setfloatattr

Command Input:
s(Name), f(Value)
Command Output:
v
Command Description:
Set a float attribute on the node.

getfloatattr

Command Input:
s(Name)
Command Output:
f(Value)
Command Description:
Get a float attribute from the node.

setboolattr

Command Input:
s(Name), b(Value)
Command Output:
v
Command Description:
Set a bool attribute on the node.

getboolattr

Command Input:
s(Name)
Command Output:
b(Value)
Command Description:
Get a bool attribute from the node.

setstringattr

Command Input:
s(Name), s(Value)
Command Output:
v
Command Description:
Set a string attribute on the node.

getstringattr

Command Input:
s(Name)
Command Output:
S(Value)
Command Description:
Get a string attribute from the node.

setvector3attr

Command Input:
s(Name), f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Set a vector3 attribute on the node.

getvector3attr

Command Input:
s(Name)
Command Output:
f(X), f(Y), f(Z)
Command Description:
Get a vector3 attribute from the node.

setvector4attr

Command Input:
s(Name), f(X), f(Y), f(Z), f(W)
Command Output:
v
Command Description:
Set a vector4 attribute on the node.

getvector4attr

Command Input:
s(Name)
Command Output:
f(X), f(Y), f(Z), f(W)
Command Description:
Get a vector4 attribute from the node.

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