Tags

This time, I am posting a utility I made for the movie. This basically is an applescript that I made which copies automations made on Spanner into the corresponding Object Track.

For this to work there are some requisites:
1. The Spanner and the Object tracks must be adjacent to each other. Example if it is a 7.1 Spanner, the object tracks should be next to it and in the order L, C, R, Lss, Rss, Lsr, Rsr, LFE.
2. All tracks must display the Master Bypass Automation lane on the track. So, Spanner will display the Spanner Master Bypass and the Object Tracks will display the Dolby Atmos Master Bypass.
3. It offers 3 choices. 7.1 to Atmos, 5.1 to Atmos and LCR to Atmos. The object tracks should correspond to this.
You will need to make a selection across the length of automation on the Spanner track and then run this app. I have only tested this on Mountain Lion. I think Apple has changed some applescript accessibility in Yosemite. So, not sure if it will work there.
Hope it is useful to some of you mixers.

Link: Click Here

Code for Applescript. Copy Paste into the Applescript Editor.

set myFormat to {"Spanner to Object 7.1", "Spanner to Object 5.1", "Spanner to Object LCR"}
set myChoice to (choose from list myFormat) as string
set x to 1
set y to 0


if (myChoice = "Spanner to Object 7.1") then
	
	set y to 6
	
	display dialog "Make sure your automation view is set to Master Bypass of Spanner on Spanner track and Master Bypass of Dolby Panner on all object tracks and the object tracks are in the order L, C, R, Lss, Rss, Lsr, Rsr,  LFE just after the spanner track."
	
	tell application "Finder"
	tell application "System Events"
	set PT to the first application process whose creator type is "PTul"
	tell PT
	activate
	set frontmost to true
	--Left X
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
	keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
	keystroke "p"
	end repeat
	
	
	delay 0.2
	--Left Y
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
	keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
	keystroke "p"
	end repeat
	
	
	
	repeat y times
	
	set x to x + 1
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
		keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
		keystroke "p"
	end repeat
	
	
	delay 0.2
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
		keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
		keystroke "p"
	end repeat
	end repeat
	end tell
	end tell
	end tell
	
else if (myChoice = "Spanner to Object 5.1") then
	set y to 4
	
	display dialog "Make sure your automation view is set to Master Bypass of Spanner on Spanner track and Master Bypass of Dolby Panner on all object tracks and the object tracks are in the order L, C, R, Ls, Rs, LFE just after the spanner track."
	
	tell application "Finder"
	tell application "System Events"
	set PT to the first application process whose creator type is "PTul"
	tell PT
	activate
	set frontmost to true
	--Left X
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
	keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
	keystroke "p"
	end repeat
	
	
	delay 0.2
	--Left Y
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
	keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
	keystroke "p"
	end repeat
	
	
	
	repeat y times
	
	set x to x + 1
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
		keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
		keystroke "p"
	end repeat
	
	
	delay 0.2
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
		keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
		keystroke "p"
	end repeat
	end repeat
	end tell
	end tell
	end tell
	
	
else if (myChoice = "Spanner to Object LCR") then
	display dialog "Make sure your automation view is set to Master Bypass of Spanner on Spanner track and Master Bypass of Dolby Panner on all object tracks and the object tracks are in the order L, C, R just after the spanner track."
	
	set y to 2
	
	tell application "Finder"
	tell application "System Events"
	set PT to the first application process whose creator type is "PTul"
	tell PT
	activate
	set frontmost to true
	--Left X
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
	keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
	keystroke "p"
	end repeat
	
	
	delay 0.2
	--Left Y
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
	keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
	keystroke "p"
	end repeat
	
	
	
	repeat y times
	
	set x to x + 1
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
		keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
		keystroke "p"
	end repeat
	
	
	delay 0.2
	key code 124 using {command down, control down}
	keystroke "c" using {command down}
	repeat x times
		keystroke ";"
	end repeat
	key code 124 using {command down, control down}
	keystroke "v" using {command down, control down}
	repeat x times
		keystroke "p"
	end repeat
	end repeat
	
	end tell
	end tell
	end tell
	
end if