Adding multiple OSC message per cursor/trigger via script?

Home Forums Scripts Adding multiple OSC message per cursor/trigger via script?

  • This topic has 57 replies, 3 voices, and was last updated 24 minutes ago by LouisTramb.
Viewing 15 posts - 1 through 15 (of 58 total)
  • Author
    Posts
  • #2215 Reply
    Anonymous
    Inactive

    Hello-

    I am having great fun with IanniX, but have hit a snag in scripting…I want to enable two messages per cursor like:


    iannix.execute("setMessage current 20, osc://130.237.238.247:7770/scene/lightlidx " + index + " cursor_value_x");
    iannix.execute("setMessage current 20, osc://130.237.238.247:7770/scene/lightlidy " + index + " cursor_value_y");

    but only the latter message is sent…what am I missing?

    -apo

    #2688 Reply
    Anonymous
    Inactive

    Hello,
    i think you cannot set multiple messages from same object, but you can set a message with
    many value, i.e. if you want that your object send cursor x and cursor y, you can make

    iannix.execute(“setMessage current 20, osc://130.237.238.247:7770/scene/lightlidx ” + index + ” cursor_value_x” + ” cursor_value_y”);

    this will send: index, cursor x value, cursor y value

    Hope helpful although my english,
    ciao,
    francesco.

    #2689 Reply
    Anonymous
    Inactive

    Thanks. Maybe true from a scripting standpoint, but one can add multiple messages like this from the IanniX GUI with the “+” button.

    I like your solution, but my software listening on the other side is not so flexible.

    -apo

    #2690 Reply
    Anonymous
    Inactive

    I did not know that.
    And then i have know something more, thank to You.
    (i’m only a newbie).

    Maybe some expert could tell us something.

    Ciao,
    francesco.

    #2691 Reply
    Anonymous
    Inactive

    Hi!

    You can send multiple messages by separating them with a comma!

    iannix.execute("setMessage current 20, osc://130.237.238.247:7770/scene/lightlidx " + index + " cursor_value_x + ", osc://130.237.238.247:7770/scene/lightlidy " + index + " cursor_value_y");

    Easy!

    #2692 Reply
    Anonymous
    Inactive

    Perfect! Thank you very much!

    -apo

    #145971 Reply
    CletusAcume
    Guest

    stromectol for pinworms: ivermectin injectable dosage for chickens – ivermectin for head lice

    #147023 Reply
    ScottAmoli
    Guest

    Onlayn rulet v? blackjack: Pinco kazino – Uduslari tez çixar Pinco il?

    #147063 Reply
    RobertSmode
    Guest

    https://swertewin.life/# Swerte99 casino

    #147910 Reply
    RobertSmode
    Guest

    https://abutowin.icu/# Bandar togel resmi Indonesia

    #148077 Reply
    Donaldteasy
    Guest

    Bonus new member 100% Mandiribet: Bonus new member 100% Mandiribet – Mandiribet

    #148547 Reply
    Donaldteasy
    Guest

    Jiliko: Jiliko login – maglaro ng Jiliko online sa Pilipinas

    #149036 Reply
    Donaldteasy
    Guest
    #149181 Reply
    ScottAmoli
    Guest

    Online betting Philippines: jollibet – Online gambling platform Jollibet

    #149191 Reply
    Rodneykew
    Guest

    Swerte99 bonus: Swerte99 bonus – Swerte99 login

Viewing 15 posts - 1 through 15 (of 58 total)
Reply To: Reply #149566 in Adding multiple OSC message per cursor/trigger via script?
Your information:





© IanniX Association

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