Activating / Deactivating Objects on based on Cursor Position

Home Forums Making things with IanniX Activating / Deactivating Objects on based on Cursor Position

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3722 Reply
    signals_
    Guest

    I’d like to have a linear cursor traverse a straight line on an x-axis and at various points have circles activated and deactivated on the z-axis.

    How do I do that?

    #3723 Reply
    signals_
    Guest

    Put in other words: is there a way to control whether or not a curve is active based on the position of a cursor on a different curve? I presume this is doable using a script, no?

    #3724 Reply
    signals_
    Guest

    I presume it might read as follows:

    function alterateWithScript() {
    if(cursor_xpos> 1)
    run(“setactive 4 0”);
    }

    Any edits on the fly must exist in the alternateWithScript() function, correct?

    Thanks!

    #3726 Reply
    IanniX
    Keymaster

    Hi!

    Hmmm, not sure it is possible with scripts because scripts are executed one time at the score loading. It’s more a question of retroactivity (direct://) and message scripting (using {}). On your cursor, set the following message (dble-click) :
    direct:// setActive 4 {(cursor_xPos > 1)?(0):(1)}

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Activating / Deactivating Objects on based on Cursor Position
Your information:





© IanniX Association

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