theatre
theatre copied to clipboard
Not able to delete project or sheet
It would be good if we can delete project like
core.detachProject("Project");
and for sheet;
const project = core.getProject("Project");
project.detachSheet("Sheet");
Yes, this feature is needed
Experimental API for forgetting objects/sheets has been implemented a few months back, see #393 @AriaMinaei any reason why this is not yet out of experimental? +A mention in the docs would be great for newcomers!
studio.transaction((api) => {
// calling this will make it as if you never set values for this object or put it in a sequence
api.__experimental_forgetObject(object)
// calling this will make it as if you never set values for _any_ object in this sheet, and you never created a sequence either.
api.__experimental_forgetSheet(sheet)
// note that if you're calling __experimental_forgetSheet(), then there is no need to call __experimental_forgetObject() in case that object belongs in that sheet.
})