Parity Posted January 13, 2017 Share Posted January 13, 2017 Can someone help with DRIVERWORKS / LUA / SDK assistance. I am writing a driver which has a BUTTON_LINK connection. The idea is that on a specific event, it will "CLICK" the button. This could be linked to a light or an AV device such as a Play/Pause link on an AV device. I am able to send very specific proxy commands such as PLAY or PAUSE or STOP if its an AV device. For example: C4:SendToProxy(2, "PLAY", {} , "COMMAND") But if it is bound to a light then it needs commands such as ON or OFF. C4:SendToProxy(2, "ON", {} , "COMMAND") I was expecting the Director to understand the binding to be able to do this. According to the SDK documenattion the following should work but doesn't: C4:SendToProxy(2, "CLICK_COUNT", {COUNT=1} , "COMMAND") Link to comment Share on other sites More sharing options...
annex⁴ Posted January 13, 2017 Share Posted January 13, 2017 Try this: C4:SendToProxy(ID_BUTTON_BINDING, "DO_PUSH", {}, "COMMAND") C4:SendToProxy(ID_BUTTON_BINDING, "DO_CLICK", {}, "COMMAND") EDIT: I should mention that "ID_BUTTON_BINDING" should be 2 in your case. Link to comment Share on other sites More sharing options...
Parity Posted January 13, 2017 Author Share Posted January 13, 2017 Thanks @annex⁴ much appreciated. Works like a charm. Link to comment Share on other sites More sharing options...
RyanE Posted January 13, 2017 Share Posted January 13, 2017 BTW, Lua is not an acronym, so should not be all in upper case. RyanE Link to comment Share on other sites More sharing options...
seth_j Posted January 13, 2017 Share Posted January 13, 2017 I like to pretend people are really excited about Lua. Link to comment Share on other sites More sharing options...
msgreenf Posted January 13, 2017 Share Posted January 13, 2017 Haha ? Sent from my STV100-1 using Tapatalk Link to comment Share on other sites More sharing options...
msgreenf Posted January 13, 2017 Share Posted January 13, 2017 Don't forget about zg.b Sent from my STV100-1 using Tapatalk Link to comment Share on other sites More sharing options...
RyanE Posted January 14, 2017 Share Posted January 14, 2017 Don't make me come over there. RyanE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.