Item Instance Info

class lwsdk.LWItemInstanceInfo(*args)

Bases: object

Proxy of C++ PCore::LWItemInstanceInfo class

 ID(LWItemInstanceID inst) → unsigned int

Returns the ID number of the instance.

 item(LWItemInstanceID inst) → LWItemID

Returns the itemID of the mesh being instanced.

 matrix(LWItemInstanceID inst, unsigned int step) → double[9]

Returns a Python instance containing the 9 elements of the rotation/scale matrix.

 pos(LWItemInstanceID inst, unsigned int step) → double[3]

Returns a Python sequence containing the (X, Y, Z) position values of the instance.

 rotation(LWItemInstanceID inst, unsigned int step) → double[3]

Returns a Python sequence containing the (H, P, B) rotation values of the instance.

 scale(LWItemInstanceID inst, unsigned int step) → double[3]

Returns a Python sequence containing the (X, Y, Z) scale values of the instance.

 steps(LWItemInstanceID inst) → unsigned int

Returns the number of steps for the instance.

Previous topic

Item Instancer Funcs

Next topic

File I/O

This Page