HISE Logo Forum
    • Categories
    • Register
    • Login

    How to reload images?

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 377 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.
    • StraticahS
      Straticah
      last edited by

      Hey there, i restarted HISE around 30 times now and was wondering if there might be a better way to update replaced image content? F5 / rebuild interface does not work for updating assets with the same naming. :)

      creating user interfaces: www.vst-design.com
      founder @prototype.audio https://www.prototype.audio/

      tsempireT 1 Reply Last reply Reply Quote 0
      • tsempireT
        tsempire @Straticah
        last edited by

        @Straticah

        rename it and press F5.

        Example:

        if you had named it: BG

        • change it to : BG1
        StraticahS 1 Reply Last reply Reply Quote 0
        • StraticahS
          Straticah @tsempire
          last edited by

          @tsempire thanks for the response, this would mean i have to replace the asset on all pages where it is used right? so if i have 10 knobs i would need to select knob_1 on all of these istead that it just uses the new source?

          creating user interfaces: www.vst-design.com
          founder @prototype.audio https://www.prototype.audio/

          tsempireT 1 Reply Last reply Reply Quote 0
          • tsempireT
            tsempire @Straticah
            last edited by

            @Straticah what exactly did you want to change about the knobs?

            StraticahS 1 Reply Last reply Reply Quote 0
            • StraticahS
              Straticah @tsempire
              last edited by

              @tsempire i am doing a reskin of a plugin that already exists, so i nearly change everything but keep the position, 6 assigned button states and also keep the number of frames in the strips.

              top is old bottom is new so renaming these and replacing is not an option since i have too many places where they are used. Currently still restarting hise to accept color changes and see how it looks in the vst.

              ea99be2c-d951-47c5-89e0-8424a0fe1a8b-image.png

              creating user interfaces: www.vst-design.com
              founder @prototype.audio https://www.prototype.audio/

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

                What happens if you select use default skin before you select load image?

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                StraticahS 1 Reply Last reply Reply Quote 1
                • StraticahS
                  Straticah @d.healey
                  last edited by

                  @d-healey this could work as a workaround it refreshes the image :) its not as easy as F5 but its a solution to not restart HISE for simple replacements thank you :)

                  creating user interfaces: www.vst-design.com
                  founder @prototype.audio https://www.prototype.audio/

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

                    @Straticah I guess you could write a script that loops though every control and resets the image. Then each time you press F5 it will reset all images. Would that be useful?

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

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

                      inline function resetImages()
                      {
                      	for (x in Content.getAllComponents(""))
                      	{
                      		local props = x.getAllProperties();
                      		if (!props.contains("filmstripImage")) continue;
                      		x.set("filmstripImage", "Use default skin");
                      	}
                      }
                      

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

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

                        And with a modification it should reload the image after clearing it:

                        inline function resetImages()
                        {
                        	for (x in Content.getAllComponents(""))
                        	{
                        		local props = x.getAllProperties();
                        		if (!props.contains("filmstripImage")) continue;
                        		
                        		local img = x.get("filmstripImage");
                        		
                        		x.set("filmstripImage", "Use default skin");
                        		x.set("filmstripImage", img);
                        	}
                        }
                        

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

                        StraticahS 1 Reply Last reply Reply Quote 1
                        • StraticahS
                          Straticah @d.healey
                          last edited by

                          @d-healey oh thats a great idea i will try this!

                          creating user interfaces: www.vst-design.com
                          founder @prototype.audio https://www.prototype.audio/

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

                            @Straticah Did it work?

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

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

                            7

                            Online

                            2.0k

                            Users

                            12.7k

                            Topics

                            110.1k

                            Posts