Testimonial: Why scripting is one of THE BEST features in AS
Posted: Sun Sep 14, 2008 1:13 pm
I just have to give a shout out to the absolutely brilliant decision to include lua scripting in AS and also why it is so important for AS to make scripting even better.
I have been a long time, loud and repititous fan of the scripting interface in AS. Until now it was always just a really cool feature. Yes I could do a lot with it but I never had an opportunity to experience how it can be used in as an incredible time saver for low budget repetitious projects.
In the last few weeks I had a real job using AS. Very low budget. This job required doing animated "karaoke". Sing-along type animation that highlights words to the lyrics of music. The first "test" project I did a while back took a couple of hours for just one book. It was extremely tedious. Most of the effort was struggling to find the exact spot in the wave form of the audio where a key frame would be placed to highlight a syllable and repeating this over and over and over.
When I was done, I kept thinking this is crazy. There must be a better way. But it was just in the back of my head. A dream. One book was not enough incentive to create a new script.
Recently I received 25 of these books to do. Twenty freaking five. 5-9 pages each. As I got closer to the point of actually hand animating each of those books I got more and more anxious about it. I was dreading it. Oh my goodness I was sooooo dreading that tedious mind numbing process. Scrubbing through the time line in AS to find that exact spot and sticking in a key frame for syllable after syllable, page after page, the same thing for each but slightly different over and over and over and over and....
There must be a better way. NOW there was an incentive to use scripting for this job.
The first step involved setting up the AS template files ahead of time. This process was already established. This took the most time but was still "automated" to some extent using a text editor, search and replace and modifying a tool to speed up the creation of switch masks highlighting the syllables on multiple "pages" of each book. Scripting was used here by creating a simple modification to the select points tool that uses the arrow keys to move up and down the layers inside a switch to edit each layer by deleting a shape for each syllable. No need to move my mouse to the layer palette and click on it, i just tap the down arrow key and cycle through the layers many times faster as before.
The next step involved creating a "click" track using a midi keyboard and "tapping" along to the music to define where the syllables were. (this step won't be needed for future books as the "click" track can be created from the original music automatically).
The last step was to write a relatively simple script that opened this click file, counted the "clicks" and the spot on the time line, and placed key frames for each switch layer in the proper order and repeating the whole process 3 times for each song.
BANG! What took one or two, or even up to three hours before was done literally in a split second. The time needed to create the click track sound file was MEANINGLESS compared to the savings in tedium and potential errors of doing the animation by hand in AS.
The ENTIRE animation is done in ONE SINGLE STEP. It automatically sets the length of the animation based on the length of the sound file. There is NO hand animating needed WHATSOEVER. All keys, all setting of layer visibility, opacity for fades... all of it done in a few seconds with one script. While testing the script I would clear all the animation from the document and run it again, recreating hours of work over and over in just a few seconds. Changes could be made to the script and the process repeated. It is easier now to "redo" the whole animation then to go in and "hand edit" small changes. Trying to find the exact spot for a small edit adds minutes to the job, multiplied times 25 files... you see how it is. Just modify the script, clear the animation and run it again. Much faster.
In the past my scripting projects never had a time line or a budget. This was the first time I could personally see how scripting had a direct impact on making things faster and easier with a real "paying" job in AS. I went from losing money on the agreed price to actually making money. I made a boring horrible monotonous job into a simpler multi-step automated task. I took a monotonous, tedious, low budget job and made it simple and easy to do.
I can't express enough how fantastic this was. How amazing it is too see AS zipping through these files and knowing they are all exactly correct. Exactly right. If there were any problems I can see it immediately and correct the files.
I can continue adding to the script to make it even faster. I want to be able to automate the file creation process as well and shave hours off of that task. The faster I can get them done the better for both myself and my client.
I post this in the hopes that SM will see and understand how the scripting interface is one of the best and most powerful features of AS. Without it none of this would be possible. I also hope that other users of AS will see how scripting can be advantageous for their own projects. Even if it is a "one off" type of script specific to one project it can still save time and money.
Scripting in AS is not a hugely popular or talked about feature in AS except by those who use it and those brave enough to try out the scripts created by some of the users. It should be. It should have more focus and more options to make it easier for those of us who use it and make our scripts available to other AS users.
By continuing to improve and expand the script interface for the handful of users who make use of it, it is exponentially advantageous to ALL the AS users. The few who script for AS will be able to do more, faster.
-vern
I have been a long time, loud and repititous fan of the scripting interface in AS. Until now it was always just a really cool feature. Yes I could do a lot with it but I never had an opportunity to experience how it can be used in as an incredible time saver for low budget repetitious projects.
In the last few weeks I had a real job using AS. Very low budget. This job required doing animated "karaoke". Sing-along type animation that highlights words to the lyrics of music. The first "test" project I did a while back took a couple of hours for just one book. It was extremely tedious. Most of the effort was struggling to find the exact spot in the wave form of the audio where a key frame would be placed to highlight a syllable and repeating this over and over and over.
When I was done, I kept thinking this is crazy. There must be a better way. But it was just in the back of my head. A dream. One book was not enough incentive to create a new script.
Recently I received 25 of these books to do. Twenty freaking five. 5-9 pages each. As I got closer to the point of actually hand animating each of those books I got more and more anxious about it. I was dreading it. Oh my goodness I was sooooo dreading that tedious mind numbing process. Scrubbing through the time line in AS to find that exact spot and sticking in a key frame for syllable after syllable, page after page, the same thing for each but slightly different over and over and over and over and....
There must be a better way. NOW there was an incentive to use scripting for this job.
The first step involved setting up the AS template files ahead of time. This process was already established. This took the most time but was still "automated" to some extent using a text editor, search and replace and modifying a tool to speed up the creation of switch masks highlighting the syllables on multiple "pages" of each book. Scripting was used here by creating a simple modification to the select points tool that uses the arrow keys to move up and down the layers inside a switch to edit each layer by deleting a shape for each syllable. No need to move my mouse to the layer palette and click on it, i just tap the down arrow key and cycle through the layers many times faster as before.
The next step involved creating a "click" track using a midi keyboard and "tapping" along to the music to define where the syllables were. (this step won't be needed for future books as the "click" track can be created from the original music automatically).
The last step was to write a relatively simple script that opened this click file, counted the "clicks" and the spot on the time line, and placed key frames for each switch layer in the proper order and repeating the whole process 3 times for each song.
BANG! What took one or two, or even up to three hours before was done literally in a split second. The time needed to create the click track sound file was MEANINGLESS compared to the savings in tedium and potential errors of doing the animation by hand in AS.
The ENTIRE animation is done in ONE SINGLE STEP. It automatically sets the length of the animation based on the length of the sound file. There is NO hand animating needed WHATSOEVER. All keys, all setting of layer visibility, opacity for fades... all of it done in a few seconds with one script. While testing the script I would clear all the animation from the document and run it again, recreating hours of work over and over in just a few seconds. Changes could be made to the script and the process repeated. It is easier now to "redo" the whole animation then to go in and "hand edit" small changes. Trying to find the exact spot for a small edit adds minutes to the job, multiplied times 25 files... you see how it is. Just modify the script, clear the animation and run it again. Much faster.
In the past my scripting projects never had a time line or a budget. This was the first time I could personally see how scripting had a direct impact on making things faster and easier with a real "paying" job in AS. I went from losing money on the agreed price to actually making money. I made a boring horrible monotonous job into a simpler multi-step automated task. I took a monotonous, tedious, low budget job and made it simple and easy to do.
I can't express enough how fantastic this was. How amazing it is too see AS zipping through these files and knowing they are all exactly correct. Exactly right. If there were any problems I can see it immediately and correct the files.
I can continue adding to the script to make it even faster. I want to be able to automate the file creation process as well and shave hours off of that task. The faster I can get them done the better for both myself and my client.
I post this in the hopes that SM will see and understand how the scripting interface is one of the best and most powerful features of AS. Without it none of this would be possible. I also hope that other users of AS will see how scripting can be advantageous for their own projects. Even if it is a "one off" type of script specific to one project it can still save time and money.
Scripting in AS is not a hugely popular or talked about feature in AS except by those who use it and those brave enough to try out the scripts created by some of the users. It should be. It should have more focus and more options to make it easier for those of us who use it and make our scripts available to other AS users.
By continuing to improve and expand the script interface for the handful of users who make use of it, it is exponentially advantageous to ALL the AS users. The few who script for AS will be able to do more, faster.
-vern