HISE Logo Forum
    • Categories
    • Register
    • Login

    How to reload images?

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 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.
    • 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?

        building user interfaces in HISE :)
        web: www.vst-design.com

        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

            building user interfaces in HISE :)
            web: www.vst-design.com

            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?

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public 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 :)

                building user interfaces in HISE :)
                web: www.vst-design.com

                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?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public 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");
                    	}
                    }
                    

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public 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);
                      	}
                      }
                      

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public 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!

                        building user interfaces in HISE :)
                        web: www.vst-design.com

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

                          @Straticah Did it work?

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

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

                          27

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.5k

                          Posts