Forum

Feature request: retrieve js variable from html texture nodes

This seems like it would be super handy, as would be able to integrate js libraries and functions in to a patch. Perhaps there is already a clever way to do this? If not would it be hard to implement in the nodes?

So I could not figure out how to access a variable directly, or if that is even possible.

JavaScript writing to the DOM seems to work though. Suits my purposes anyway. If any web guys know a better way would love to hear about it.

Anyway here is a demo patch.

JS-IO.v4p (29.7 kB)

+1 for variables:) Maybe also console output? And the current DOM state, not just the initially loaded one? cheers