[Beta] Lua Asset Creation for Creator Tooling with CreateAssetAsync

I just finished implementing this, hopefully it will be in the next Studio release! I actually tested it by making a plugin that uploads animations from the Animation editor and it worked great!

3 Likes

Hey! I really appreciate what you’re doing with this API-- it’s been a total game changer for my projects.

My builder recently ran into an issue where he’s getting this error in his console:
Unsupported subtree content - the following instances contain unpublished content and can not be uploaded: Union

I saw you mentioned:
Sometimes, Studio will temporarily use local data that will be replaced by an asset id later. Some examples of this are CSG unions... When uploading a Model, the API traverses the subtree, and if any such data is in the temporary local state, it will error.

I assume this is related, and I attempted your workaround (saving/publishing to Roblox, then attempting to CreateAssetVersion), but we’re still getting the error.

Excuse my lack of knowledge, but is there any way to force save these unions (UnionOperations), which would then let us upload them? I would be more than happy to give examples of problem models we’re running into for you to look at if you’d like.

Yes, you correctly identified the cause, and what should be the solve; unfortunately we kind of took a “shortcut” with this first version and just don’t allow that kind of content to exist regardless of if it is saved or not.

This is something we plan to get to after we add support for store plugins. The goal is to have CreateAssetAsync save the unsaved content for you so you never have to worry about this; but it’s been challenging to prioritize this work.

For now, unfortunately the API won’t be useable with models that contain CSG, sorry!

1 Like

Hey, any estimate on when the API will be available for store plugins? I got a few tools I’m excited to release!

I am hoping to have a more accurate idea in the next few days, I will post an update when I do.

Really sorry for how long it has been so far, we were really hoping to have it out sooner!

1 Like