Hi,
I was inspired to write this post by seeing another user mention issues with controlling their Christie Spyder(s). We have 4 Spyder X20s here, and when they were originally installed, Ross/Rocket Surgery gave us a CustomPanel that allowed us to control those devices within DashBoard simply by adding a custom function/device function block. We've since lost those original files from RocketSurgery, so I was forced to rebuild a working button from a picture I'd taken of the OGScript. This was to limited avail, as I was able to recreate the function with a strictly OGScript task, but I encounter errors whenever I build the function in Visual Logic.
This is the script I used to make a working OGScript function:
var myMessageBuilder = ogscript.createMessageBuilder();
myMessageBuilder.writeString("spyder");
myMessageBuilder.writeByte(0);
myMessageBuilder.writeByte(0);
myMessageBuilder.writeByte(0);
myMessageBuilder.writeByte(0);
myMessageBuilder.writeString("rsc " + (2-1) + " " + (1));
myMessageBuilder.writeString(" r");
//ogscript.sendUDPBytes('localhost', '7788', myMessageBuilder.toByteArray());
ogscript.sendUDPBytes(params.getValueAsString('BellyCornerPrimary_IPAddress', 0), params.getValueAsString('BellyCornerPrimary_Port', 0), myMessageBuilder.toByteArray());
ogscript.debug(myMessageBuilder.toByteArray());
ogscript.debug('Message sent to ' + params.getValueAsString('BellyCornerPrimary_IPAddress', 0) + ':' + params.getValueAsString('BellyCornerPrimary_Port', 0) + ' successfully.');
and below is a couple of screenshots making up the visual logic function. Note that this is built only as a local function for now for ease of troubleshooting, and I would convert it to a custom Device once I got it working. The second screenshot is what the final visual logic block looks like.
------------------------------
Sean Byrne
Broadcast Engineer
Memphis Grizzlies
Memphis United States
------------------------------