ezuk
Joined: 04 Jun 2005 Posts: 146
|
Posted: Wed Dec 09, 2009 11:01 am Post subject: Script powerpoint slide transitions (for audio sync) |
|
|
Hello,
Here is a simple script I created to sync PowerPoint with an audio file.
This is for creating video tutorials and explanations.
My workflow is this:
1) I record audio and edit it in Audacity until I'm happy with it.
2) I create Powerpoint slides to go with the audio. These are many slides, and in-slide animations that should go _exactly_ on the right word.
3) I then play the audio and see exactly where I want the slide transitions to happen. I pause every time and check what's the exact position.
4) I edit the script's timing file (times) and put in the times.
5) I then run Camtasia and run the script with Powerpoint and the audio, and record it all in sync.
| Code: |
Window = PowerPoint ; What's the title of the window?
TimesFilename = times ; what's the filename with the intervals?
SetTitleMatchMode, 2
PreviousTime = 0
WinActivate,%Window%
Send,{f5}
Loop, read, %TimesFilename%
{
CurrentTime = %A_LoopReadLine%
SleepDuration := A_LoopReadLine-PreviousTime
TimedOperation()
Sleep,SleepDuration
PreviousTime := CurrentTime
}
TimedOperation()
{
Send, {space}
}
|
Times file:
| Code: |
3000
7000
9400
11000
| [/code] |
|