Looking over the scripting api documentation, I see two mechanisms I can leverage to create new FMOD Events, studio.project.create(“Event”) and workspace.addEvent.
For my purposes, I have a default Event that we currently use to generate events from source assets. I’d like to use that default to create new events in scripting.
Is there a way to create an event using a default Event?
Alternatively, is there any way to deep clone the default event, if I retrieve it with a LookUp.
Currently it is not possible to create events from Defaults via scripting. You are able to find all defaults by putting all events into an array and iterating through it looking for if the
isDefault property is true.
var allEvents = studio.project.model.Event.findInstances();
We are looking into ways to copy or create an event based on another event.
Thanks, due to the complexity of the default events in question, and the time consumption of trying to parse out on console the ways I might be able to add SendMixers and Automation via scripting, I’ve abandoned that route and resolved to just generate the blank events for authors to manipulate.
Nonetheless, I appreciate your time in replying!