How to grab some objects' variables values from JS ??

Julien Bayle's icon

I have my pretty nice JS calling/placing abstractions previously made in my Patcher.
It works fine.

BUT, I'd need to grab some specific values inside these abstraction from my JS.

Basically, those abstractions draw things in my OpenGL context and I'd need to grab the position of my OB3D objects from my JS.
Should I create the objects with a script name x, y & z for each abstraction and to update those values when they change directly in the abstraction ??

anyone would help here ??

Julien Bayle's icon

The question asked better :

How to expose all values from an abstraction easily to a central JS Code without to have to wire all etc ??