Forum

    • Register
    • Login
    • Search
    • Categories

    Differentiating between viewports

    General Questions
    3
    3
    27
    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?

      ulrik 1 Reply Last reply Reply Quote 0
      • Christoph Hart
        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
        • ulrik
          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 12.3.1, Xcode 13.0
          http://musikboden.se

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

          9
          Online

          732
          Users

          5.4k
          Topics

          50.2k
          Posts