VCU Tipps und Tricks

From Tomelec
Revision as of 12:59, 13 January 2012 by Tom (talk | contribs)

Jump to: navigation, search

Konvertierung mit svfconvert

Mehere Verzeichnisse mit PNG Sequenzen automatisch zu SVF konvertieren:

for directory in `find -type d`; do svfconvert -m /path/to/mapping.xml -i `pwd`/`basename $directory` -o `pwd` -c `if echo $directory | grep colours >/dev/null; then echo "/usr/local/bin/svf-convert/colorcorrection/100209_artistic_Sharp.coc"; else echo "/usr/local/bin/svf-convert/colorcorrection/100209_natural_Sharp.coc"; fi` -p `basename $directory`; done 

Angabe der Geometrie in allen SVF Dateinamen ändern:

for file in *.svf; do mv $file `echo $file | sed s/90x72/54x72/g`; done

SVF Dateien auf die SD-Karten Verzeichnisse aufteilen:

for i in `seq 1 6`; do mv *.$i.svf sd/$i; done