Graphics

 View Only
  • 1.  Counter

    Posted 12-11-2014 10:58
    Hello everybody

    I have a question about the counter widget. In the property you can set key "ctrl 1" or "ctrl 2" for increment the counter. Is it possible to set multiple key with different value on incrementation ? As "ctrl 1" = +1 "ctrl 2" = +4 ? It's seem that you can only set one key in the property.

    Or is it possible only with scripting ?

    Thanks !


  • 2.  RE: Counter

    Posted 12-17-2014 14:58
    As far as I know you could only achieve this functionality by using scripts in the keyboard map.

    #XPression


  • 3.  RE: Counter

    Posted 12-18-2014 14:34
    Ok thank you for the answer. I'm not good at script writing but I will try to find some example to see how to write one and try it.

    #XPression


  • 4.  RE: Counter

    Posted 12-18-2014 21:32
    Here is an example of a script you could put in the Script Action in the Keyboard mapping menu.

    This will increment the widget named Counter1 by 3..

    `

    dim widget as xpCounterWidget

    engine.GetWidgetByName("Counter1", widget)

    widget.Value = widget.Value + 3

    `

    #XPression


  • 5.  RE: Counter

    Posted 12-19-2014 11:30
    Thank you ! I will try that as soon as possible.

    #XPression


  • 6.  RE: Counter

    Posted 01-07-2015 17:55
    It's working perfectly thank you !

    #XPression