setting values using scripting name


    Apr 17 2016 | 11:37 pm
    Hi
    I am looking at Javascript - with no experience! - and am trying to understand the syntax for addressing objects through their scripting name
    I am trying to simply change the value of a number box called "var1" using the variable i.
    This is what I came up with from searching around but no joy.
    this.patcher.script("sendbox",var1,"set", i);
    Any help would be hugely appreciated.
    Cheers