Help with RGBMatrix parameters of type integer and string
Posted: Thu Jul 13, 2017 2:38 am
Hi All,
I hope this is an easy one but I just can't get it to work at the moment. I'm trying to create an RGB matrix script that has a string as a parameter, but I can't get it to work. I thought the properties string would be something like:
The above doesn't produce a property in QLC, but shows up in the devtool. I also tried the below properties stings but was unsuccessful as well.
I have attached my sample script, which tests out all 4 type's (according to http://www.qlcplus.org/docs/rgbscriptapi.html). In the script the lists and ranges produced properties, but integers and strings don't.
Any help would be much appreciated.
I hope this is an easy one but I just can't get it to work at the moment. I'm trying to create an RGB matrix script that has a string as a parameter, but I can't get it to work. I thought the properties string would be something like:
Code: Select all
algo.properties.push("name:myString|type:string|display:myString|write:setmyStr|read:getmyStr");
Code: Select all
algo.properties.push("name:myString|type:string|display:myString|write:setmyStr|read:getmyStr"); //leave out values: pair as it does not apply to strings
algo.properties.push("name:myString|type:string|display:myString||write:setmyStr|read:getmyStr"); //empty space for vales as it does not apply to strings.
algo.properties.push("name:myString|type:string|display:myString|values:|write:setmyStr|read:getmyStr"); //add a blank values:
algo.properties.push("name:myString|type:string|display:myString|values: |write:setmyStr|read:getmyStr"); //add a values:[space]
algo.properties.push("name:myString|type:string|display:myString|values:6|write:setmyStr|read:getmyStr"); //maybe values is a length? values:6
Any help would be much appreciated.