Possible to sync 2 viewports?



  • I have 2 viewports side by side, first contains names of all articulations and second contains CC value corresponding to each articulation.
    There are a lot of articulations so I have to scroll the viewport and it would be nice if the second viewport scrolled along, is it possible to script you think?



  • @ulrik Never mind, it was a bad idea...



  • Why don't you combine both in 1 viewport?



  • @ustk you mean 2 viewports inside another viewport?



  • @ulrik Nope, I mean to combine the 2 strings "Articulation Name" + "CC" in one single viewport



  • @ustk aha, ok, well that would work but I want the user to be able to change cc per articulation, would that be possible? Maybe with each CC as variables?



  • @ulrik Sorry but I don't get it... If the user can change the CC, that means they have to navigate in the second viewport, so where is the point to synchronise them? Maybe to see the one that is set by default?
    Sorry, I don't know much about Articulation and CC...



  • @ustk Skärmavbild 2019-08-08 kl. 22.20.13.png
    This is how it looks now, articulations at left and corresponding cc value (default values), on the right side, here it easy to see what value corresponds to what articulation, but if I scroll down to see the other articulations I can't see corresponding values.
    And I want the user to be able to change cc...



  • I see... The fact is that you can't access the viewport scrolling via scripting afaik



  • @ustk Ok, I understand, I will figure out another way to do it, thanks for all help! 🙂



  • @ulrik It displays the associated CC when selecting the articulation (not when scrolling) while allowing users to change it

    HiseSnippet 1022.3ocsV0uaaaCDmxwZnVcdncXO.D4uTPcSkTrc6vPQciRRgQSRMp6LFPQQAiDsEQjHEjnalQQeD16vdD6av5QIYKoDmuLvLBCv8E4uemNdGGkH7noohDjVqOrHlhz9Y8wK3x.2.BiiFd.R6WzOgjJoI3bU6uHljlR8QZZa8FkBsVMQY+99q1mDR3dzRUHzDAyidLKhIK0NZvaYggGQ7oefEUw6tCF5I3thPwb.OaoaghIdmSlQOknbqgNR6mNzmIEIikDIME7Yeg+hwAhK349OgkxNKjpDrQigMJWMxMfE5OZIWSQHsliJY9V4L+2zOg4yVouLC7nLC3xHplCzZTGRMqAI6qCRGIB8Uav0.OsJvqYN7dr9XuDVrrzhBaOTeHG93Lk.o8pvJ2WTCyszcEfGb4tQjyoGk.BqhvrukUGbOKqc9i1FsMfjepD+ERBdBidQrHQZieId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gig4ybo.R3bZPh5FUCUofLYyhZCiobuTguC+xMZoj0xMZUXDERbiEevMqVhZ7m6lpAvDOcxuVvHnfLtr5it4tlnPXprO35pREOBv9piwdChYuMHldaPL82fXFrAw7jMHlm9CiQMP7KmKEgYOS.EiNJsHtl1QbBbKK8FI5eA7DQzgG
    

    But you need to store the CC in a sliderpack so it can be recalled later (in place of the artCC var)



  • @ustk yes, that is what I have done as well, but I would also like the user to see all coresponding cc, if only the default cc values could be on same line as the articulation, but as dynamic variables, so that if I chose another cc in the right viewport, it would update the value on the left side as well, that would be super... 🙂



  • @ustk I will sleep on it, maybe tomorrow will reveal the truth... 🙂 Thanks again ustk!!



  • @ulrik Last idea before going to bed as well 🙂

    You can add a button:

    • OFF => update the left side on CC selection
    • ON => change the CC of the selected Articulation

    Because you can't do both at the same time... You read, or you set...
    Good night!



  • @ustk I solved it like this:
    guerriniartikulations.gif
    So now I have make a warning for the user if the uacc is already used by another articulation



  • Some more fixes, warning when trying to use value that already is in use, and a "set default values" button.

    guerriniartikulations.gif


Log in to reply
 

11
Online

491
Users

1.7k
Topics

13.0k
Posts