meshcat-dev / meshcat

Remotely-controllable 3D viewer, built on top of three.js
MIT License
250 stars 44 forks source link

Add option to set_control_value without invoking the callback #98

Closed RussTedrake closed 3 years ago

RussTedrake commented 3 years ago

In a complicated workflow, like synchronizing sliders across multiple meshcat browsers, the ability to set the value without triggering the callback becomes quite useful.

We simply shortcut the callback call in https://github.com/dataarts/dat.gui/blob/master/src/dat/controllers/Controller.js#L89