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!
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!
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!