newspeoplefor developersdocumentationdownloads

nTransformNode Script Interface

ntransformnode:

Super Class:

Subclasses:

C++ Class:

Info

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

Commands:


setactive

Command Input:
b(Active)
Command Output:
v
Command Description:
Set to true if this node is active (default is true).

getactive

Command Input:
v
Command Output:
b(Active)
Command Description:
Return active flag.

setlockviewer

Command Input:
b(LockViewer)
Command Output:
v
Command Description:
Set to true if this node's position is locked to the viewer.

getlockviewer

Command Input:
Command Output:
b(LockViewer)
Command Description:
Return lock viewer flag.

setposition

Command Input:
f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Set position of node.

setposx

Command Input:
f(X)
Command Output:
v
Command Description:
Set x position of node.

setposy

Command Input:
f(Y)
Command Output:
v
Command Description:
Set y position of node.

setposz

Command Input:
f(Z)
Command Output:
v
Command Description:
Set z position of node.

getposition

Command Input:
v
Command Output:
f(X), f(Y), f(Z)
Command Description:
Get position of node.

seteuler

Command Input:
f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Set euler orientation of the node as euler. Units are degree (not rad)

seteulerx

Command Input:
f(X)
Command Output:
v
Command Description:
Set X euler angle.

seteulery

Command Input:
f(Y)
Command Output:
v
Command Description:
Set Y euler angle.

seteulerz

Command Input:
f(Z)
Command Output:
v
Command Description:
Set Z euler angle.

geteuler

Command Input:
v
Command Output:
f(X), f(Y), f(Z)
Command Description:
Get the euler orientation of the node.

setquat

Command Input:
f(X), f(Y), f(Z), f(W)
Command Output:
v
Command Description:
Set the quaternion orientation of the node.

getquat

Command Input:
v
Command Output:
f(X), f(Y), f(Z), f(W)
Command Description:
Get quaternion orientation of the node.

setscale

Command Input:
f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Set the scale of the node. Default is (1, 1, 1).

getscale

Command Input:
f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Get the scale of the node.

setscalepivot

Command Input:
f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Set the optional pivot point for scaling.

getscalepivot

Command Input:
v
Command Output:
f(X), f(Y), f(Z)
Command Description:
Get the optional pivot point for rotations.

setrotatepivot

Command Input:
f(X), f(Y), f(Z)
Command Output:
v
Command Description:
Set the optional pivot point for rotations.

getrotatepivot

Command Input:
v
Command Output:
f(X), f(Y), f(Z)
Command Description:
Get the optional pivot point for rotations.

hasscalepivot

Command Input:
v
Command Output:
b(HasScalePivotFlag)
Command Description:
Returns true if a scale pivot point has been set.

hasrotatepivot

Command Input:
v
Command Output:
b(HasRotatePivotFlag)
Command Description:
Returns true if a rotate pivot point has been set.

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