Script Variables

Accueil Forums Scripts Script Variables

  • Ce sujet contient 1 réponse, 2 participants et a été mis à jour pour la dernière fois par Anonyme, le il y a 12 années et 9 mois.
2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #2175 Répondre
    Anonyme
    Inactif

    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 Répondre
    Anonyme
    Inactif

    Excellent!

    Thanks for the help Guillaume.

2 sujets de 1 à 2 (sur un total de 2)
Répondre à : Répondre #2532 dans Script Variables
Vos informations :





© IanniX Association

Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos