I have a mobile IP cam app of which I can acess settings from an interface in browser.
I would like to be able to control it from within TD, like mimeting the fact to press a button in this interface.
I’ve been working so far using headless browser technic following this post
It kind of works but it os not the most efficient to have to load an instance of the page before interacting with it, and somehow I can’t get the python library that I use ( selenium) to work in touchdesigner (even after updating the path to python libs as mention in the dedicated post)
Also this post is from 5 years ago so I was thinking a new, more efficient way of doing so might exist now and I’ve been researching around the web Dats but couldn’t find a way to make it work.
Have anybody been researching in this way and might point towards some documentation or examples?
Ha, I wrote that post, and indeed these days there is a far better method!
As TD comes with a full chromium browser included now. See the Web Render TOP and the WebBrowser component in the Palette.
Thanks! Yes that’s indeed pretty straight forward! I should make an habit of looking in the palette for solutions, so many interesting tools are laying there! And thanks for your previous solution with selenium, it was really intersting to experiment with it.
This is a great tool. Is there any way you guys know to pass a keystroke command, particularly right and left arrows, into the webBrowser using Python commands? I have a kinect that I’d like to convert gestures into right and left keypresses, but I’m stuck on how to do that. Thanks again.