Accueil › Forums › Créer avec IanniX › Activating / Deactivating Objects on based on Cursor Position
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?
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?
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!
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)}
© IanniX Association
Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos
Cookie | Durée | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |