i.e above the first generated [umenu] will be a [comment] of ’1′. above the second, a [comment] of ’2′ and so on.
I have got the [umenu]s populating using an array, and I was hoping to use the variable of my counter to populate the comment content too.. as below
theumenus[k] = this.patcher.newdefault(250+(k*100), 300, "umenu"); //make umenus
thecomments[k] = this.patcher.newdefault(250+(k*100), 280, "comment", k+1); //make comments, fill with ‘k+1′
I would have thought that after the "comment" field, the next field would be it’s content, but apparently not as all my generated [comment] boxes are empty.
Any help muchly appreciated :)
You use the variable you’ve set to refer to the object and call some of the avaiable methods. In this case you’ll want to do something like the example below.
thecomments[k] = this.patcher.newdefault(250+(k*100),280,"comment"); thecomments[k].message("set",k+1); thecomments[k].presentation(1);
Thankyou for the quick reply there :)
I get the syntax for the message script now, wasn’t sure before. Cheers!