Graphics

 View Only
  • 1.  User Keys to control widgets

    Posted 04-29-2015 22:07
    Hello there,

    Currently we are using the keyboard shortcuts Ctrl+1 etc to control widgets. However, some of our operators are finding this a bit clumsy. I'm wondering if there is a way we can use the "User" Keys on the Xpression keyboard to control our widgets?

    Thanks!


  • 2.  RE: User Keys to control widgets

    Posted 04-30-2015 13:15
    Yes, but you will need to write a small script to change the widget value and assign it to the User Keys. If you need help, let us know specifically what you want to do to the widget and I'm sure someone can post an example.

    #XPression


  • 3.  RE: User Keys to control widgets

    Posted 04-30-2015 14:26
    Thanks Brian,

    Let's say for example that User1 should start a timer widget, and User2 should stop it.

    Then there's a counter widget, that would count up when you press User3 and count down when you press User4.

    Where does the script get applied? On the scene?

    #XPression


  • 4.  RE: User Keys to control widgets

    Posted 04-30-2015 14:29
    No, the script gets assigned and built inside the Keyboard Mapping menu.. You drag a script action into the keyboard map then assign a User Key to it.

    You should watch this if you haven't already: http://www.rossvideo.com/graphics-system/xpression/xpression-u/video-tutorial-201.html

    Here is an example that would start a timer widget:

    `dim widget as xpClockTimerWidget

    engine.GetWidgetByName("ClockTimer1", widget)

    widget.start

    `

    #XPression