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.