HISE Logo Forum
    • Categories
    • Register
    • Login

    Differentiating between viewports

    Scheduled Pinned Locked Moved General Questions
    3 Posts 3 Posters 164 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.
    • T
      TNTHM
      last edited by

      I am getting an error, "Duplicate const var declaration" when I add script for a second viewport. How can I differentiate between the two?

      ulrikU 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        John has a brother who is also named John. His parents confused them all the time. So he called himself Steve and the problem was gone. Variable names also can't be used twice.

        1 Reply Last reply Reply Quote 3
        • ulrikU
          ulrik @TNTHM
          last edited by

          @TNTHM every component need to have a unique id so you have to have another id on your second viewport.

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

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          44

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts