Changed BLI_convertstringcode to replace any number of hashes with the frame number.
somefile_##.png -> somefile_01.png somefile_########-image.png -> somefile_00000001-image.png Before, A hash at the end of the string would be replaced by a number with 4 characters. This is still default if no #'s are in the string, so nothing has changed. To use this function from the python api use scene.render.getFrameFilename()
This commit is contained in:
@@ -1059,7 +1059,7 @@ static int seq_proxy_get_fname(Sequence * seq, int cfra, char * name)
|
||||
|
||||
frameno = tse->nr + seq->anim_startofs;
|
||||
|
||||
snprintf(name, PROXY_MAXFILE, "%s/%s/%d/#", dir,
|
||||
snprintf(name, PROXY_MAXFILE, "%s/%s/%d/####", dir,
|
||||
seq->strip->stripdata->name,
|
||||
G.scene->r.size);
|
||||
} else {
|
||||
@@ -1067,7 +1067,7 @@ static int seq_proxy_get_fname(Sequence * seq, int cfra, char * name)
|
||||
|
||||
frameno = tse->nr + seq->anim_startofs;
|
||||
|
||||
snprintf(name, PROXY_MAXFILE, "%s/proxy_misc/%d/#", dir,
|
||||
snprintf(name, PROXY_MAXFILE, "%s/proxy_misc/%d/####", dir,
|
||||
G.scene->r.size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user