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:
objectA 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
cameraThe camera in this node. childrenThe children of this node. lightThe light in this node. matrixThe homogenous transform matrix for this node. meshThe mesh in this node. nameThe user-defined name of this object. rotationThe xyzw quaternion for this node. scaleThe scale for this node. skinThe skin index for this node. translationThe translation for this node. Attributes Documentation
-
camera¶ The camera in this node.
Type: Camera
-
light¶ The light in this node.
Type: Light