Looking to extend my Luke Tools and was hoping to able to add assets to the liprary programatically.
project.assetLibrary.addAsset(asset);
Is this a thing?
Looking to extend my Luke Tools and was hoping to able to add assets to the liprary programatically.
project.assetLibrary.addAsset(asset);
Is this a thing?
i was able to get this working, but only inside the console, not inside wick’s code editor, and i’m not exactly sure why.
let asset = new window.Wick.ImageAsset({
filename: "pfp.png",
src: "https://forum.wickeditor.com/user_avatar/forum.wickeditor.com/baronawc/32/14116_2.png",
});
project.addAsset(asset);
the asset will look pretty normal in the library, but attempting to add the image to the canvas will fail, probably because i’m missing something important while trying to add the asset.

not really sure what it’s missing, but hopefully this can at least get you moving in the right direction.
At least that is a lead… Thanks heaps!
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)