HISE Logo Forum
    • Categories
    • Register
    • Login

    How to upload images from expansions?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 197 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.
    • L
      Lumi283
      last edited by

      I'm trying to load an image into the UI interface of my HISE project.

      Why isn't the following line displaying anything? Did I make a syntax error? Should I load the expansion I want instead?

      var new_1_img = Content.addImage("new_1_img"); 
      var sticker_1_path = FileSystem.getFolder(FileSystem.Expansions).getChildFile("/Exp2/Images/sticker_1.png");
      new_1_img.setImageFile(sticker_1_path, true);
      

      Thank you.

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

        Are you using File based expansions?

        Whatever you're doing you should probably use the expansion handler and then call the getWildcardReference function for the particular expansion you want to work with.

        7c44ed16-ddaf-4ac5-881f-d72541fd1be2-image.png

        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

        17

        Online

        1.8k

        Users

        12.1k

        Topics

        104.9k

        Posts