How To Set Media File ASWG/iXML Metadata
Hello, I'm trying to make a Lua script to modify the ASWG/iXML metadata of a selected take's BWF source file.
So far, I'm able to display the current ASWG metadata with reaper.GetMediaFileMetadata(), but there doesn't seem to be a function to setMediaFileMetadata for a specific item.
I see a possible way to achieve my goal by using a tool named "bwfmetaedit" from reascript (using os.execute, maybe?) to export an iXML, modify it, and re-import it. However, that seems a bit convoluted to me, and I'd like to avoid having to install another application.
Is there a way to read a BWF's iXML chunk directly in LUA and to modify the values?
Thank you!
|