HISE Logo Forum
    • Categories
    • Register
    • Login

    ViewPort view position y

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 107 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Oli UllmannO
      Oli Ullmann
      last edited by Oli Ullmann

      Hello to all :-)

      Is viewport.set("viewPositionY", value); not working on Init? Even if I set the Y position on Init it always scrolls down a little bit after I hit compile.

      Thank you
      Oli

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @Oli Ullmann
        last edited by

        @Oli-Ullmann Yes there is a known problem with setting the viewPositions
        https://forum.hise.audio/topic/11852/viewport-problems?_=1739958949137

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        Oli UllmannO 1 Reply Last reply Reply Quote 1
        • Oli UllmannO
          Oli Ullmann @ulrik
          last edited by

          @ulrik
          Oh no! :-(
          Thank you for the info.

          HISEnbergH 1 Reply Last reply Reply Quote 0
          • HISEnbergH
            HISEnberg @Oli Ullmann
            last edited by HISEnberg

            @Oli-Ullmann Okay here is a cheeky solution to the problem.

            Inside the viewport put a panel to act like a container, then set the x/y position of the panel to whatever you desire. Once you recompile, the viewport will start from the top.

            const var Viewport1 = Content.getComponent("Viewport1");
            Viewport1.set("viewPositionY", 0.00); // Doesn't work
            
            const var ContainerPanel = Content.getComponent("ContainerPanel");
            ContainerPanel.set("x", 0);
            ContainerPanel.set("y", 0);
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            32

            Online

            1.8k

            Users

            12.2k

            Topics

            106.0k

            Posts