How to upload images from expansions?
-
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.
-
Are you using File based expansions?
Whatever you're doing you should probably use the expansion handler and then call the
getWildcardReferencefunction for the particular expansion you want to work with.