HISE Logo Forum
    • Categories
    • Register
    • Login

    canI import parts of one HISE project into another?

    Scheduled Pinned Locked Moved General Questions
    12 Posts 6 Posters 463 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.
    • G
      gryphonsegg
      last edited by

      I have a tabbed view setup in a new project and I would Like to take everything I made in another project and spread it out amongst the 3 tabs that I have set up in a new project. Or... if not, can I import a snippet into my preexisting project and rearrange everything on the 3 tabs without screwing up my plugin that I already have?

      DabDabD LindonL 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Put the code into its own namespace, put that in an external file, and then import that file into the new project. Either make a copy of the file in the new project's scripts folder or use the global scripts folder.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        G 1 Reply Last reply Reply Quote 0
        • G
          gryphonsegg @d.healey
          last edited by

          @d-healey I am not following. Put it into its own namespace?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @gryphonsegg
            last edited by

            @gryphonsegg Namespaces are a structural tool in HISE script. They allow you to organise your code into easy to manage chunks. They also provide some scope restrictions so data doesn't leak between different parts of your code, allowing you to have two variables with the same name for example.

            I covered it a bit in my Christmas video last year.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • DabDabD
              DabDab @gryphonsegg
              last edited by

              @gryphonsegg If you want to copy all your components (Knob, Sliders, panel etc) just copy the old project UI things from XmlPresetBackups folder.
              e.g.
              Copy TestPianoDesktop.xml scripts from
              YourProjectName\XmlPresetBackups\TestPianoUIData

              and TestPiano.xml script
              into your new Project XmlPresetBackups folder.

              Bollywood Music Producer and Trance Producer.

              1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @gryphonsegg
                last edited by

                @gryphonsegg

                or if you want to copy different Ui components to different parts of your new project:

                1. In the olde project move the set of UI components you want into a single panel
                2. select the panel and press "J" - this will show you the json as text... copy that text
                3. In your new project open a new panel (where you want these ui widgets) and press "j" again - paste in your copied JSON...

                HISE Development for hire.
                www.channelrobot.com

                1 Reply Last reply Reply Quote 1
                • trillbillyT
                  trillbilly
                  last edited by

                  Is there a way to do this with Scriptnode? I see there is an "Import" option, but how?

                  Matt_SFM 1 Reply Last reply Reply Quote 0
                  • Matt_SFM
                    Matt_SF @trillbilly
                    last edited by

                    @trillbilly I have tried quickly the import button but it didn't work with a scriptnode snippet but you can do it like this :

                    In the graph, right click on the whole network top-bar and click on the "snowflake" to 'export as base64' :
                    e6a05a20-7b47-41ec-8667-9ea3ff1b0c84-image.png

                    Then in an empty graph, open the 'create node' popup and paste what you've exported :

                    410bf204-6741-43b9-8a9c-2d18dcd886ab-image.png

                    Develop branch
                    Win10 & VS17 / Ventura & Xcode 14. 3

                    LindonL 1 Reply Last reply Reply Quote 2
                    • LindonL
                      Lindon @Matt_SF
                      last edited by

                      @Matt_SF ..or just copy the network from the folder...

                      HISE Development for hire.
                      www.channelrobot.com

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @Lindon
                        last edited by

                        @Lindon That only works if you want to copy the entire network rather than individual nodes

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @d.healey
                          last edited by

                          @d-healey of course.....but I've never wanted to coy a single node that I recall - but hey maybe...

                          HISE Development for hire.
                          www.channelrobot.com

                          trillbillyT 1 Reply Last reply Reply Quote 1
                          • trillbillyT
                            trillbilly @Lindon
                            last edited by

                            @Lindon Ya, This worked better in the end

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

                            47

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            102.2k

                            Posts