govinda
05-05-2008, 09:48 PM
In brief, it stinks to get big c4d image sequence renders into AE. Doing command-i on a folder with 20,000+ images will kill your eyes and take a needlessly long time. And you can't drag-and-drop a messy folder onto AE like you can with other composting apps. It'll read it as 20,000 individual images.
For Mac users, one way to make it easier would be to subfolderize your main render folder. Then you can just drag and drop the subfolders into AE, which will then recognize them as sequences rather than individual files. But c4d won't render multipass to subfolders like I believe other apps will (please go suggest this at Maxon).
So I asked someone to create an Applescript to help, and they came through. Here's a demo of it:
Subfolderize Demo Movie
(http://www.planetsandvegetables.com/image_seq_subfolderize_sor.mov)
Here's the script. Use at your own risk, and all the other disclaimers. I'm using it daily on big renders. Looking at the script (and the demo movie) you should see how to change it for your needs. Hope this helps.
Rendered Image Sequence Subfolderize 3.01
set sourceFldr to POSIX path of (choose folder with prompt " Please select a source folder.")
-- Create the subfolders in the folder.
do shell script ("mkdir -p " & quoted form of sourceFldr & "{rgb,refl,motion,normal,shadow,specular,object_{1,2,3,4,5},post_1}")
set subfolderNames to {"rgb", "refl", "motion", "normal", "shadow", "specular", "object_1", "object_2", "object_3", "object_4", "object_5", "post_1"}
repeat with thisFolderName in subfolderNames
do shell script "find " & quoted form of sourceFldr & " -type f -name \"*" & thisFolderName & "*\" -maxdepth 1 -print0 | xargs -0 -J {} mv {} " & quoted form of (sourceFldr & thisFolderName)
end repeat
For Mac users, one way to make it easier would be to subfolderize your main render folder. Then you can just drag and drop the subfolders into AE, which will then recognize them as sequences rather than individual files. But c4d won't render multipass to subfolders like I believe other apps will (please go suggest this at Maxon).
So I asked someone to create an Applescript to help, and they came through. Here's a demo of it:
Subfolderize Demo Movie
(http://www.planetsandvegetables.com/image_seq_subfolderize_sor.mov)
Here's the script. Use at your own risk, and all the other disclaimers. I'm using it daily on big renders. Looking at the script (and the demo movie) you should see how to change it for your needs. Hope this helps.
Rendered Image Sequence Subfolderize 3.01
set sourceFldr to POSIX path of (choose folder with prompt " Please select a source folder.")
-- Create the subfolders in the folder.
do shell script ("mkdir -p " & quoted form of sourceFldr & "{rgb,refl,motion,normal,shadow,specular,object_{1,2,3,4,5},post_1}")
set subfolderNames to {"rgb", "refl", "motion", "normal", "shadow", "specular", "object_1", "object_2", "object_3", "object_4", "object_5", "post_1"}
repeat with thisFolderName in subfolderNames
do shell script "find " & quoted form of sourceFldr & " -type f -name \"*" & thisFolderName & "*\" -maxdepth 1 -print0 | xargs -0 -J {} mv {} " & quoted form of (sourceFldr & thisFolderName)
end repeat
