Activating / Deactivating Objects on based on Cursor Position

Accueil Forums Créer avec IanniX Activating / Deactivating Objects on based on Cursor Position

4 sujets de 1 à 4 (sur un total de 4)
  • Auteur
    Messages
  • #3722 Répondre
    signals_
    Invité

    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 Répondre
    signals_
    Invité

    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 Répondre
    signals_
    Invité

    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 Répondre
    IanniX
    Maître des clés

    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)}

4 sujets de 1 à 4 (sur un total de 4)
Répondre à : Répondre #3724 dans Activating / Deactivating Objects on based on Cursor Position
Vos informations :





© IanniX Association

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