• Dark Theme
    • Categories
    • Register
    • Login
    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 310 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 @d.healey
      last edited by 7 Jul 2023, 00:50

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

      D 1 Reply Last reply 7 Jul 2023, 01:08 Reply Quote 0
      • D
        d.healey @gryphonsegg
        last edited by 7 Jul 2023, 01:08

        @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.

        https://www.youtube.com/watch?v=hD1RWA5fwRQ

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

        1 Reply Last reply Reply Quote 0
        • D
          DabDab @gryphonsegg
          last edited by 7 Jul 2023, 07:31

          @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
          • L
            Lindon @gryphonsegg
            last edited by 7 Jul 2023, 12:32

            @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
            • T
              trillbilly
              last edited by 7 Jul 2023, 13:54

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

              M 1 Reply Last reply 7 Jul 2023, 14:08 Reply Quote 0
              • M
                Matt_SF @trillbilly
                last edited by 7 Jul 2023, 14:08

                @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

                L 1 Reply Last reply 7 Jul 2023, 15:13 Reply Quote 2
                • L
                  Lindon @Matt_SF
                  last edited by 7 Jul 2023, 15:13

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

                  HISE Development for hire.
                  www.channelrobot.com

                  D 1 Reply Last reply 7 Jul 2023, 15:18 Reply Quote 0
                  • D
                    d.healey @Lindon
                    last edited by 7 Jul 2023, 15:18

                    @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

                    L 1 Reply Last reply 7 Jul 2023, 15:27 Reply Quote 0
                    • L
                      Lindon @d.healey
                      last edited by 7 Jul 2023, 15:27

                      @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

                      T 1 Reply Last reply 10 Jul 2023, 18:20 Reply Quote 1
                      • T
                        trillbilly @Lindon
                        last edited by 10 Jul 2023, 18:20

                        @Lindon Ya, This worked better in the end

                        1 Reply Last reply Reply Quote 0
                        12 out of 12
                        • First post
                          Last post

                        63

                        Online

                        1.9k

                        Users

                        10.8k

                        Topics

                        94.2k

                        Posts