Script Variables

Home Forums Scripts Script Variables

  • This topic has 1 reply, 2 voices, and was last updated 11 years ago by Anonymous.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2175 Reply
    Anonymous
    Inactive

    Hi!

    In javascript, you just have to concatenate a string :

    var counter = 0;
    iannix.execute("add trigger " + counter);
    iannix.execute("setPos current 0 " + counter + " 0");

    counter++;

    iannix.execute("add trigger " + counter);
    iannix.execute("setPos current 0 " + counter + " 0");

    This example will place 2 triggers (ID=0 and ID=1) at position (x,y,z)=(0,0,0) and (0,1,0).

    If you want to generate triggers from pd, follow the example in attachment.

    #2532 Reply
    Anonymous
    Inactive

    Excellent!

    Thanks for the help Guillaume.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Script Variables
Your information:





© IanniX Association

What is IanniX? | Download | Showcase | Forums | Research | About