Well after few tester… i can access to my HUE Light from TD. And i can control Brightness, Hue and Saturation, turn on/off each light… i tried with 3 of them. Also can make transitions between them…
So i connected to all my sensor device to make interactive stuff… nice sweet and WIRELESS!!
But you need to install this 2 library to make it work right!
github.com/quentinsf/qhue github.com/studioimaginaire/phue (for this one after install “pip install phue”, you need to download the zip from the link, unzip it and copy folder phue-maste (i renamed to phue) to site-packages in python folder)
after that you can add python code and configure them…
And yes there is a bottleneck, if you connect a slider to hue/sat/bri the FPS goes down to 4-5… but if you send a constant parameter works fine and fast
Oh interesting, do you have a sample TD project to post that implements this? I totally want to control my lights at home from TD and I have a mix of Hue, Artnet, and sACN stuff
I’ve been working with zoe sandoval to add extensions and make a more modular approach for this puppy. Took a moment to clean-up the documentation as well, so there’s at least a little get you started.
Ahhh - I think I need to update some of the documentation.
First, make sure that you’re starting with a toe file you’ve already saved to a location on your computer. Next use the TOX from the directory called “release”. When you drop that TOX into your project it should do a little house keeping and run some python scripts.
Next, are you pressing the button on your hue bridge before you pulse the “Set-up Individual Lights” parameter? That’s the bit that should handshake with the hue and make sure you’re able to retrieve the dictionary of lights.
I’m using the TOX in the release folder. I don’t have any error when i’m importing the TOX.
I’m entering the IP adress and pressing the button of the Hue bridge, and the error appears when I’m pressing the set up individual lights parameter.
I have followed everything methodically (use a saved toe file and use the tox in the release folder, etc.) and am able to control the lights from my computer with code, but am having several problems getting it to work in TD.
Hi @charliej99 - what I can see right off the bat is that the python version for the latest TouchDesigner is 3.9 and this module hasn’t been updated since the change from Python 3.7. I should be able to look at this during the week and see if I can get an update pushed to github.
Hi @charliej99 - I just pushed some updates. You will need to download the tox from the release folder again, but you should now be able to run this in the latest Version of TouchDesigner without issue.
You will need a stand alone version of Python 3.9 installed, but otherwise should be good to go.
For Example i have constant TOP where the colorr colorg colorb are changing constantly.
If i use a script which then pulses the UpdateAll Button the frame rate goes down and i get time out errors from the IP.
I have two hue play lightbars they react kinda ok and i have one Lightstrip which is sometimes reacting and then not, all connected to the same bridge.
Is there a better way to submit color changes in a short time without using the updateall button via script? I think it is triggered several times in a second.