Skip to content

Binding

new Binding(root: object, path: string)

THREE equivalent: THREE.PropertyBinding

Resolves a dotted property path on a scene-graph node for animation. Reads and writes property values during playback.

Name Type Description
root object The root object to resolve paths from.
path string Dotted property path, e.g. ‘position.x’ or ‘visible’.
Method Description
resolveNode(): object|undefined Resolves the target object from the path.
getValue(targetArray: number[], offset: number): void Reads the current property value into the array.
setValue(sourceArray: number[], offset: number): void Writes a value from the array to the property.