Page 1 of 1

More than 9999 frames

Posted: Fri May 12, 2006 2:26 pm
by mune
Moho exports jpgs as <project><frame_number>.jpg

<frame_number> has only 4 digits hence 9999 is the max number of frames allowed.

I have more than 30000 frames so I need 5 digits.

How do I say moho of my desire instead of the default 4 digit?

Thanks

Posted: Fri May 12, 2006 3:58 pm
by jahnocli
The best way would be to email him direct with your problem on
support@lostmarble.com

Posted: Fri May 12, 2006 4:27 pm
by heyvern
I would just do it in "chunks" and use a renaming application to rename the files. I think there may be some freeware versions of something out there. I use a program called "Renamer" for OSX.

So.. do the max number of frames in one rendering session into different folders. Rename the the files in each folder so they are properly sequenced.

When you are done you can just drag all the files into one folder... or not... whatever.

I had to do something similar to this for a group project a few years back. Everyone supplied their animations as sequenced TGA files. I used a renaming utility and was able to easily set everything up.

-Vern

Posted: Sat May 13, 2006 9:27 am
by mune
It wasn't necessary to do it in chunks: when moho arrived to <export_name>9999.jpg created <export_name>10000.jpg .

The only thing needed was to rename from 0000 to 9999 in 00000 09999 because otherwise <export_name>10000.jpg comes before of <export_name>2000.jpg .

I searched a program to do massive file rename but all was for win and I'm in linux, so I write a little script

Code: Select all

#!/bin/sh

######################################################
# Written by Federico Munerotto mune@email.it
#
# 12 may 2006
#
######################################################

ISTART=0
IEND=10000
PROJECTNAME=LaGrandeTruffa
PREFIX=0
SUFFIX=jpg
WORKDIR=/home/mune/work/moho/LaGrandeTruffa/AudioLaGrandfeTruffa/ProvaExport

cd $WORKDIR
i=$ISTART
while [ $i -lt $IEND ]; do
     echo mv `printf "$PROJECTNAME%04d.$SUFFIX $PROJECTNAME$PREFIX%04d.$SUFFIX" $i $i`
     mv `printf "$PROJECTNAME%04d.$SUFFIX $PROJECTNAME$PREFIX%04d.$SUFFIX" $i $i`
          i=$(($i+1))
          done
pwd
Thanks to all