Hi,
I have groups of 3 clips that I want to insert in a montage (montage containing 3 tracks ), each group having its own montage. I can script the creation of each montage but I can’t find a way to script the insertion of each group of 3 clips inside its dedicated montage.
Is the “InnerScript” function the way?
Thanks.
This is not clear. Please explain more.
For instance:
- montage A with 3 tracks( clips 1-3)
- montage B with 3 tracks(clips 4-7)
-etc…
and all these montages opened in wavelab.
(Potential setup: having 3 clips with same content but having artifacts at different tc and you want to edit into one single consolidated file.)
Do you mean you want to copy a clip from one montage to another?
Seems not clear but pretty much I just want to create several montages and being able to insert clips inside programmaticaly, instead of having to do it manually. The purpose is to prepare a session with several different montages for someone else. As I wrote earlier, I can script the task to create several montages but can’t find a way to load the wave in each montage.
I managed to do it with innerscript function. Thanks.
As WaveLab-Scripting examples are in my experience very scarce, I would appreciate it immensely – and it may help at least me and I hope also others would like it too … to post some code to learn from it.
I personally have an audio montage that I use as a template. Each time I have to replace (identical) 7 new audio-files for a new project. (I delete the old files by marking all and press ‘del’ and then drag seven times that new file to the right positions and press 6 times enter after the mixing-question from WaveLab.) I asked myself, how to do it better and less error prone.
Reading this thread I had high hopes but so far no code examples to learn from it.
I have not found an extensive documentation so far. Where is it to find?
Some of this might help:
If I understand correctly you want to add 7 audio files one after another on the same track?
My approach is to create a .vbs file that triggers a .js file(wavelab internal script). Originaly I though I could do it all in the .vbs file but I don’t know if it’s possible or how to script it.
-
create a .vbs file with this inside:
Dim app
Set app = CreateObject(“WaveLab9_1_64replacewithyourversion.Application”)
While app.IsReady() = False
WScript.Sleep(100)
Wend
Set montage = CreateObject(“WaveLab9_1_64.AudioMontage”)
montage.Open(“path to the template montage”)
Dim inner
Set inner = CreateObject(“WaveLab9_1_64yourversion.InnerScript”)
call inner.Execute(“path to the .js script”) -
create the .js file with this inside:
for (i = 0; i < 7; i++)
{
activeMontage.insertClip(0, 0,“path to your audio file”, autoShiftTrack )
}
To run the task just double click on the .vbs
If you want to change the audio file, instead of having to open the .js all the time and modify the text, you could do it programmaticaly also.
I don’t know if this is what you expected but that’s how managed to access all the inner script functions.
ps: I forgot, you can add a function to delete all clips on the montage at the begining. Check the lists.