Sonntag, 16. Oktober 2011

Sorting multi-pass files into directories

The problem of the multi-layered file was that EXtractoR takes forever to extrude eg the motion vector channel, even if the file is on the local hard drive (possibly due to the unzipping) -

the problem is also described here:
http://area.autodesk.com/forum/autodesk-3ds-max/lighting---rendering/exr-compression-and-ae/

I will go for the recommended route and split up the files again. It might also help me with the previews. But we will see for that.


Found the AE Plugin "Immigration" here:
http://aescripts.com/immigration/
for importing files - I would like to prefer to sort the passes in different folders, after the render

http://www.linuxjournal.com/article/8919
got me going with a rather simple script.

So I came up with this ultrasimple script:

find . -type f -print |
while read -r pathname; do
   
    filename=${pathname##*/}
        
    # very unclean because hard-coded 0000.exr ending but good for now
    new_dirname=${filename%????.exr}

    if [ ! -d "$new_dirname" ]; then
        mkdir -p "$new_dirname"
    fi
    mv "$pathname" "./$new_dirname/$filename"

done

Keine Kommentare:

Kommentar veröffentlichen