Using Godot to Control QLC+
Posted: Fri Dec 17, 2021 9:41 pm
Hi all,
I made a simple thing for my purposes and thought it might be useful to others. I run a planetarium with ~100 LED fixtures and I'm working on my own GUI to control them.
Anyway, attached is a gdScript that creates a websocketclient and connects it to a local instance of QLC+ so you can send QLC+ commands from Godot to QLC+. You of course have to activate the web server command line option in QLC+ (as outlined in the QLC+ documentation) for it to work.
There is an example command in the script as a demonstration. I've only tested channel specific commands because that's all I need it to do, I'm going to create fixtures within Godot so I don't have to worry about QLC+ fixtures or functions, but I can't imagine a reason why any other QLC+ commands wouldn't work as well.
The point is you can use this to hook any of the robust Godot GUI features (buttons, item lists, color pickers, sliders, etc.) to QLC+ commands. Go nuts.
I made a simple thing for my purposes and thought it might be useful to others. I run a planetarium with ~100 LED fixtures and I'm working on my own GUI to control them.
Anyway, attached is a gdScript that creates a websocketclient and connects it to a local instance of QLC+ so you can send QLC+ commands from Godot to QLC+. You of course have to activate the web server command line option in QLC+ (as outlined in the QLC+ documentation) for it to work.
There is an example command in the script as a demonstration. I've only tested channel specific commands because that's all I need it to do, I'm going to create fixtures within Godot so I don't have to worry about QLC+ fixtures or functions, but I can't imagine a reason why any other QLC+ commands wouldn't work as well.
The point is you can use this to hook any of the robust Godot GUI features (buttons, item lists, color pickers, sliders, etc.) to QLC+ commands. Go nuts.