Node¶
-
class
pyrender.
Node
(name=None, camera=None, children=None, skin=None, matrix=None, mesh=None, rotation=None, scale=None, translation=None, weights=None, light=None)[source]¶ Bases:
object
A node in the node hierarchy.
Parameters: - name (str, optional) – The user-defined name of this object.
- camera (
Camera
, optional) – The camera in this node. - children (list of
Node
) – The children of this node. - skin (int, optional) – The index of the skin referenced by this node.
- matrix ((4,4) float, optional) – A floating-point 4x4 transformation matrix.
- mesh (
Mesh
, optional) – The mesh in this node. - rotation ((4,) float, optional) – The node’s unit quaternion in the order (x, y, z, w), where w is the scalar.
- scale ((3,) float, optional) – The node’s non-uniform scale, given as the scaling factors along the x, y, and z axes.
- translation ((3,) float, optional) – The node’s translation along the x, y, and z axes.
- weights ((n,) float) – The weights of the instantiated Morph Target. Number of elements must match number of Morph Targets of used mesh.
- light (
Light
, optional) – The light in this node.
Attributes Summary
camera
The camera in this node. children
The children of this node. light
The light in this node. matrix
The homogenous transform matrix for this node. mesh
The mesh in this node. name
The user-defined name of this object. rotation
The xyzw quaternion for this node. scale
The scale for this node. skin
The skin index for this node. translation
The translation for this node. Attributes Documentation
-
camera
¶ The camera in this node.
Type: Camera
-
light
¶ The light in this node.
Type: Light