Bases: object
Proxy of C++ PCore::LWItemInstancerFuncs class
Creates and returns a new instanceID for the instancer.
Removes and releases the provided instance
from the instancer system.
Returns the first LWItemInstanceID
from the instancer system.
Returns a LWItemInstanceID
from the instancer system by index
.
Returns the next LWItemInstanceID
from the instancer system that follows instance
in the list.
Returns the number of instances currently managed by the instancer system.
Set the instance
attributes. The ID
is used to identify a LWItemInstanceID
by a number, and item
is the mesh-type scene object to which the LWItemInstanceID
will be assigned.
Sets the instanceID draw mode for OpenGL. Available options are:
lwsdk.INSTDRAW_NONE
No drawing is done.
lwsdk.INSTDRAW_POINT
The instance is drawn as a point.
lwsdk.INSTDRAW_BBOX
The instance is drawn as a bounding box.
Sets the instance
's color for OpenGL.
Set the instance motion data for a single step.
step
is the step index for which the parameters will be set.
pos
is the position for the step
.
scl
is the scale for the step
.
rot
is the rotation for the step
.
Set the instance motion data for a single step. step
is the step index for which the parameters will be set. pos
is the position for the step. matrix
is a Python sequence of 9 double values that represent the rotation and scale matrix for the step.
Set the instance motion data for multiple steps at once.
data
is a Python sequence that contains one of the following for each step to be set:
( (position), (scale), (rotation) )
Where position
is a 3-element sequence representing the position at that step, scale
is a 3-element sequence holding the step scale values, and rotation
is a 3-element sequence that contains the rotations at that step.
Set the instance motion data for multiple steps at once.
data
is a Python sequence that contains one of the following for each step to be set:
( (position), (matrix) )
Where position
is a 3-element sequence representing the position at that step, and matrix
is a 9-element sequence containing the rotation/scale matrix for the step.