mcallegari / qlcplus

Q Light Controller Plus (QLC+) is a free and cross-platform software to control DMX or analog lighting systems like moving heads, dimmers, scanners etc. This project is a fork of the great QLC project written by Heikki Junnila that aims to continue the QLC development and to introduce new features.
Apache License 2.0
921 stars 349 forks source link

RGBScript property type "integer" and "string" not available #1497

Closed Taste62 closed 6 months ago

Taste62 commented 6 months ago

The rgbscript property types "integer" and "string" only work in the developement tool and not in QLC+.

image in comparison to image

Here is the file I used for testing, I had to add an aditional .txt file extension, because github wouldn't let me upload it. propertyDemo.js.txt

mcallegari commented 6 months ago

I think initially it was designed to be as much flexible as possible, but then using list and range was enough for most of the scripts. Can you make a usage case example where you specifically need to use integer (rather than range) and string?

Taste62 commented 6 months ago

"integer" is not that important to me, because I could just use "range" with a low starting value and a high end value or if "string" works, I could use that.

In contrast "string" would enable me to: a) Accept hex colors instead of using a drop-down menu to select colors, when more than two are needed. b) Take large inputs in a single input field for example a list of colors to go through. c) Take mathematical expressions as an input, which then could be drawn on the rgb-panel.

mcallegari commented 6 months ago

See 26e22a2300b8be5091f819b38bf85f2ae29f94cc and ad7ec2f62b074314c2a00e583b0e92132b65ea01 I have implemented 'string' and turned 'integer' into 'float' which could add more value (integer can be done via range)

Please test and report if everything works as expected. And moreover, the usage you will do about it :wink:

Attach sample script for future reference string_and_float.zip