cables is under heavy development.
There might be one or another bug, please let us know about it!

OrbitControls Op

Namespace: Ops.Gl.Matrix

Op author: pandur

Test Patches: 17 Tests

rotate your object by clicking and dragging the mouse

Adds mouse-interactivity to your patch. After you added the OrbitControls-op you can rotate the viewport my dragging with the mouse and zoom in / out using the mouse wheel.


render (Trigger)

Executes the op


min distance (Number)

Minimum distance to scroll in, once you hit that distance scrolling in has no effect

max distance (Number)
min rot y (Number)
max rot y (Number)

Initial Values

initial radius (Number)
initial axis y (Number)

The starting point from where to look at the scene in the y-axis

initial axis x (Number)

The starting point from where to look at the scene in the x-axis


mul (Number)
Smoothness (Number)
Speed X (Number)
Speed Y (Number)
Active (boolean /Number)
Allow Panning (boolean /Number)
Allow Zooming (boolean /Number)
Allow Rotation (boolean /Number)
restricted (boolean /Number)
Reset (Trigger)


trigger (Trigger)

Triggers the next op

radius (Number)
Rot X (Number)
Rot Y (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Orbit controls

Use orbit controls to easily navigate and interact with the 3d scene.

  • move the mouse while pressing the left button to rotate
  • move the mouse while pressing the right button to move
  • scroll / use the mouse wheel to zoom in and out

Youtube Video Tutorial

Patches using OrbitControls

  • Examples (33)
  • Public
  • My Patches


code cleanup - ports
2019-05-28 - andro
reset now also resets position from panning
2019-07-10 - pandur
removed pointerlock functionality
2022-01-31 - pandur