newspeoplefor developersdocumentationdownloads

nBlendShapeNode Script Interface

nblendshapenode:

Super Class:

C++ Class:

Info

Class for interpolating between up to 8 similar meshes.

Commands:


setmeshat

Command Input:
i(index) s(MeshResource)
Command Output:
v
Command Description:
Set the name of the mesh resource for the specified index. The mesh at stream 0 must provide the index buffer for all meshes.

getmeshat

Command Input:
i(index)
Command Output:
s(MeshResource)
Command Description:
Get the name of the mesh resource for the specified index.

getnumshapes

Command Input:
v
Command Output:
i(NumShapes)
Command Description:
Get the number of shapes.

setgroupindex

Command Input:
i(GroupIndex)
Command Output:
v
Command Description:
Set the mesh group index

getgroupindex

Command Input:
v
Command Output:
i(GroupIndex)
Command Description:
Get the mesh group index

setlocalboxat

Command Input:
i(shapeIndex), f(midX), f(midY), f(midZ), f(extentX), f(extentY), f(extentZ)
Command Output:
v
Command Description:
Define the local bounding box for a shape. Shape node 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.

getlocalboxat

Command Input:
i(shapeIndex)
Command Output:
f(midX), f(midY), f(midZ), f(extentX), f(extentY), f(extentZ)
Command Description:
Return the local bounding box for a shape.

setweightat

Command Input:
i(shapeIndex), f(weight)
Command Output:
v
Command Description:
Set the weight of a particular shape.

getweightat

Command Input:
i(shapeIndex)
Command Output:
f(weight)
Command Description:
Return the weight for a particular shape.

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