Created
October 2, 2009 18:59
-
-
Save topfunky/200001 to your computer and use it in GitHub Desktop.
Render After Effects diagrams from a Rakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :ae do | |
desc "Render After Effects Titles and Diagrams" | |
task :render do | |
mkdir_p "artwork/after_effects_rendered" | |
Dir['artwork/after_effects/[0-9]*.aep'].each do |aep_project_name| | |
aep_project_name = File.expand_path(aep_project_name) | |
mov_output_name = aep_project_name.gsub(/\.aep/, '.mov').gsub(/artwork\/after_effects/, 'artwork/after_effects_rendered') | |
command = ["'/Applications/Adobe After Effects CS4/aerender'", | |
"-reuse", # Launch one instance of AE, or use existing. Faster. | |
%(-project "#{aep_project_name}"), | |
%(-comp "Comp 1"), | |
%(-RStemplate "Best Settings"), # Render template | |
%(-OMtemplate "Lossless with Alpha (Straight)"), # Output template | |
"-mp", # Use multicore | |
"-v ERRORS", | |
"-close DO_NOT_SAVE_CHANGES", | |
"-sound ON", | |
%(-output "#{mov_output_name}")] | |
system(command.join(' ')) | |
rm_rf aep_project_name + " Logs" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment