How can I "New 3D Event" by command

How can I “New 3D Event” by command ?Thanks

Hi Dic,

You will need to use studio.project.create("Event") and then add a spatializer to the master track. By default, all events created are placed in the root events folder and don’t have any additional audio tracks. Here’s an example:

myEvent = studio.project.create("Event");
myEvent.name = "My New Event";
myEvent.masterTrack.mixerGroup.effectChain.addEffect("SpatialiserEffect");

For more information, please see our documentation on scripting:

https://www.fmod.com/resources/documentation-studio?page=scripting-terminal-reference.html

Thanks,
Richard

1 Like

Thanks!!