Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly point2d, point3d, point4d throws an error #605

Open
andrenanninga opened this issue Mar 2, 2024 · 3 comments
Open

Readonly point2d, point3d, point4d throws an error #605

andrenanninga opened this issue Mar 2, 2024 · 3 comments

Comments

@andrenanninga
Copy link

I'm trying to monitor a vector(3) in my project, but I'm getting errors when setting readonly: true in my binding. I don't have much experience with this library yet so possibly I'm just using it wrong...

const pane = new Pane();
const PARAMS = {
  offset: {x: 50, y: 25},
};
pane.addBinding(PARAMS, 'offset', { readonly: true });
{
    "message": "No matching controller for 'offset'",
    "name": "TpError",
    "stack": "Error: No matching controller for 'offset'\n    at new TpError (https://tweakpane.github.io/docs/assets/tweakpane.js:85:22)\n    at PluginPool.createBinding (https://tweakpane.github.io/docs/assets/tweakpane.js:7290:15)\n    at RackApi.addBinding (https://tweakpane.github.io/docs/assets/tweakpane.js:1694:31)\n    at Pane.addBinding (https://tweakpane.github.io/docs/assets/tweakpane.js:2210:30)\n    at <anonymous>:4:6",
    "type": "nomatchingcontroller"
}
@lolik9l
Copy link

lolik9l commented Mar 25, 2024

I have the same problem...

@cocopon
Copy link
Owner

cocopon commented Mar 25, 2024

I have not yet implemented 2D/3D point monitoring because I was unsure about the demand for them.

@lolik9l
Copy link

lolik9l commented Mar 25, 2024

It would be cool to have it work, so for example I would like to use this to output the actual position of a 3D model (vector3) in my scene.
This will definitely be helpful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants