diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-27 00:41:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-27 00:41:38 +0300 |
commit | 709b1a93e61e5c53f981819949641fb5db01d48e (patch) | |
tree | 7e2546594fa1ef5c5034d35b96efb69f301eb45a /source/blender/quicktime | |
parent | 586af8ca479ad22e59ef3a45694096f8a5e16405 (diff) |
support for #'s for output animation paths
This was supported...
image: /tmp/foo_###_bar --> /tmp/foo_001_bar.png
But not this...
anim: /tmp/foo_###_bar --> /tmp/foo_001_250_bar.avi
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r-- | source/blender/quicktime/apple/qtkit_export.m | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/quicktime/apple/qtkit_export.m b/source/blender/quicktime/apple/qtkit_export.m index 8a537617348..6e9e4885def 100644 --- a/source/blender/quicktime/apple/qtkit_export.m +++ b/source/blender/quicktime/apple/qtkit_export.m @@ -156,16 +156,20 @@ void makeqtstring (RenderData *rd, char *string) { void filepath_qt(char *string, RenderData *rd) { char txt[64]; - if (string==0) return; + if (string==NULL) return; strcpy(string, rd->pic); BLI_convertstringcode(string, G.sce); BLI_make_existing_file(string); - if (BLI_strcasecmp(string + strlen(string) - 4, ".mov")) { - sprintf(txt, "%04d_%04d.mov", (rd->sfra) , (rd->efra) ); - strcat(string, txt); + if (!BLI_testextensie(string, ".mov")) { + /* if we dont have any #'s to insert numbers into, use 4 numbers by default */ + if (strchr(string, '#')==NULL) + strcat(string, "####"); /* 4 numbers */ + + BLI_convertstringframe_range(string, rd->sfra, rd->efra); + strcat(string, ".mov"); } } |