Delete User Property from script?

I am working on a script that adds a User Property to all events that contains a specific Effect Chain on their master track, and have a script that works for this. However, I cannot figure out how to make the script remove the User Property again if the effect chain is later deleted from an event.

Can someone help me figure out how to remove User Properties using FMOD scripting?

Thank you!

Hi,

Object can be delete using studio.project.deleteObject (FMOD Studio | Scripting API Reference - Project.deleteObject)
I have an event with a single user property:


And I removed it like this:

var event = studio.window.browserCurrent()
studio.project.deleteObject(event.userProperties[0])

Hope this helps!

1 Like

Thank you, just what I needed!

1 Like