Last active
August 3, 2017 15:13
-
-
Save jDmacD/4551205917d7a65d33f4deade2987e70 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
task printProps { | |
doFirst { | |
println src | |
println dest | |
} | |
} | |
task movDir { | |
doLast { | |
mkdir(dest + 'MOV/') | |
} | |
} | |
task exrDir { | |
doFirst { | |
mkdir(dest + 'EXR/') | |
} | |
} | |
task copyMovs(dependsOn: movDir, type: Copy){ | |
def movDest = dest + 'MOV/' | |
inputs.dir("src") | |
outputs.dir("movDest") | |
from src | |
into movDest | |
include '*.mov' | |
rename { String filename -> | |
filename.replace('_rec709', '') | |
} | |
doLast { | |
println "Done" | |
} | |
} | |
task copyExrs(type: Copy){ | |
doLast{ | |
from src | |
into dest + 'EXR/' | |
include '**/*.exr' | |
} | |
} | |
task exr2aces (dependsOn: exrDir){ | |
doLast{ | |
fileTree(src).matching{ include "**/*.exr"}.each{ aFile -> | |
mkdir(dest + 'EXR/' + aFile.getParentFile().getName() + '/') | |
exec{ | |
commandLine 'exr2aces', aFile, dest + 'EXR/' + aFile.getParentFile().getName() + '/' + aFile.getName(), '-v' | |
} | |
} | |
} | |
} |
This file contains hidden or 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
task printProps { | |
doFirst { | |
println job_name | |
println job_date | |
println src | |
} | |
} | |
def movPath = '/net/isilon/ifs/transfers/from_vfx/ash_lad/to_editorial/' + job_date + '/' + job_name + '/' | |
def exrPath = '/net/isilon/ifs/transfers/from_vfx/ash_lad/to_baselight/' + job_date + '/' + job_name + '/' | |
task movDir { | |
doLast { | |
mkdir(movPath) | |
} | |
} | |
task exrDir { | |
doFirst { | |
mkdir(exrPath) | |
} | |
} | |
task copyMovs(dependsOn: movDir, type: Copy){ | |
from src | |
into movPath | |
include '*.mov' | |
rename { String filename -> | |
filename.replace('_rec709', '') | |
} | |
} | |
task copyExrs(type: Copy){ | |
from src | |
into exrPath | |
include '**/*.exr' | |
} | |
task exr2aces (dependsOn: exrDir){ | |
fileTree(src).matching{ include "**/*.exr"}.each{ aFile -> | |
mkdir(exrPath + aFile.getParentFile().getName() + '/') | |
exec{ | |
commandLine 'exr2aces', aFile, exrPath + aFile.getParentFile().getName() + '/' + aFile.getName(), '-v' | |
} | |
} | |
doLast{ | |
println "EXR TO ACES COMPLETE" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment