Accessing object value in js
Hello, is there a way to access an object value?
For example, is there a way to dump informations about an object referred by a js variable directly in js.
To my knowledge it's only possible to send messages to objects and change attribute, but I don't if possible to expose the actual value of the object to js.
Thanks
Do you mean, like printing to the console? If so, check out the `post` method:
https://docs.cycling74.com/max7/vignettes/jsglobal
Hi, no I'm trying to get the value of a max object, for example a number box or a function, directly inside js in order to avoid to send the value from max to the js object. A sort of obj.getattr() method, but for getting the value.
Thanks
Something like the methods of Maxobj .set() and .message() but to get the value.
very curious to know if anyone's solved this!