HISE Logo Forum
    • Categories
    • Register
    • Login

    [Scriptnode] Prevent Renaming a Node ID When Attempting to Use One That Already Exists

    Scheduled Pinned Locked Moved Solved Feature Requests
    3 Posts 2 Posters 390 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.
    • A
      aaronventure
      last edited by aaronventure

      This needs a failsafe. With bigger networks, it's so easy to turn the whole thing into a shitshow entirely by accident.

      The worst thing is that if you already have a connection, then rename a node and accidentally repeat the ID, you won't know you did it until you restart HISE and suddenly your connections are all fucked up.

      1 Reply Last reply Reply Quote 0
      • A
        aaronventure
        last edited by

        I generally think that tying node connections to a string ID, that is front-facing and changeable, with the repercussions of a bad rename not being instantly audible, is a bad idea.

        Nodes should have an internal id which is a number or code or whatever, that we can in no way change. If the idea behind this was to make connections it easily readable in an XML, this only works if you're clearly naming your nodes, which is often discouraged by the title bar size (math nodes can fit maybe one word).

        Christoph HartC 1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart @aaronventure
          last edited by

          @aaronventure yes, actually it would make sense to just add another property called Name that is solely used to be displayed in the header and leave the ID property constant and unchangeable.

          1 Reply Last reply Reply Quote 2
          • A aaronventure referenced this topic on
          • A aaronventure marked this topic as a question on
          • A aaronventure has marked this topic as solved on
          • First post
            Last post

          19

          Online

          1.7k

          Users

          11.8k

          Topics

          102.4k

          Posts