"Resize to content length" not working properly

Hi, I use FMod Studio 2.01.06

I have a lot of very simple events, only containing voices.
Thousand of voice events.

As voices are placeholder, they are recorded again and again, because of text changes.
And in this case, event size do not fit to the WAV containing the voice. There is a blank at the end, or sound is trimmed.

Moreover, even if it’s not a good solution (because I have to select evey sing event to do so), I tried to use “Resize to content lenth”, but this does not do anything.

So the only solution I see is to open each event and try to reajust event size to the WAV size, thousands of times…
Best would be to multi-select them in the events view > right click > adjust content…

note : I cannot delete and recreate all events because I need their GUID unchanged in the engine.

Any idea ?
Thanks !

I’m not sure to fully understand. You have to deal with already created events but have to change the source audio files afterwards, which don’t fit the length of the original files, isn’t it? Why didn’t you think of using async instruments in the first place, if it was planned that the source files could be changed?
Anyway, for this kind of things, implementing a script could help…

Yes, you got it.
I need to have the event length in the engine afterwards, so simple event is the best.

I found solution using script :slight_smile:

    name: "FMOD Examples\\Match Content Length",
    isEnabled: function() { return studio.window.browserSelection().length; },
    execute: function() {
		previewStr = "";
		studio.window.browserSelection().forEach(function(item) {
				var event = item;
				if(event.timeline.modules.length == 1)
					if(event.timeline.modules[0].length != event.timeline.modules[0].audioFile.length)
						previewStr += "FIX " + item.name + ":" + event.timeline.modules[0].length + ">>" + event.timeline.modules[0].audioFile.length + "\n";
						event.timeline.modules[0].length = event.timeline.modules[0].audioFile.length;
		if(previewStr != "")
1 Like