Object3D

class pythreejs.Object3D[source]

This widget has some manual overrides on the Python side.

Inherits ThreeWidget.

Three.js docs: https://threejs.org/docs/#api/core/Object3D

name
Unicode("", allow_none=False).tag(sync=True)
type
Unicode("Object3D", allow_none=False).tag(sync=True)
children
Tuple().tag(sync=True, **widget_serialization)
up
Vector3(default_value=[0, 1, 0]).tag(sync=True)
position
Vector3(default_value=[0, 0, 0]).tag(sync=True)
rotation
Euler(default_value=[0, 0, 0, "XYZ"]).tag(sync=True)
quaternion
Vector4(default_value=[0, 0, 0, 1]).tag(sync=True)
scale
Vector3(default_value=[1, 1, 1]).tag(sync=True)
modelViewMatrix
Matrix4(default_value=[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]).tag(sync=True)
normalMatrix
Matrix3(default_value=[1, 0, 0, 0, 1, 0, 0, 0, 1]).tag(sync=True)
matrix
Matrix4(default_value=[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]).tag(sync=True)
matrixWorld
Matrix4(default_value=[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]).tag(sync=True)
matrixAutoUpdate
Bool(True, allow_none=False).tag(sync=True)
matrixWorldNeedsUpdate
Bool(False, allow_none=False).tag(sync=True)
visible
Bool(True, allow_none=False).tag(sync=True)
castShadow
Bool(False, allow_none=False).tag(sync=True)
receiveShadow
Bool(False, allow_none=False).tag(sync=True)
frustumCulled
Bool(True, allow_none=False).tag(sync=True)
renderOrder
CInt(0, allow_none=False).tag(sync=True)
add(children)[source]
lookAt(vector)[source]
remove(children)[source]
rotateX(rad)[source]
rotateY(rad)[source]
rotateZ(rad)[source]
setRotationFromMatrix(m)[source]

m is a 3 by 3 matrix, as a list of rows. The columns of this matrix are the vectors x, y, and z