Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-05 22:38:09 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-05 22:38:09 +0400
commit0d61876ed05af04fa0c19413e669c8b8a255dcf4 (patch)
tree733a96eecb10a22c8f36ad2b25ec463196481926 /source/blender/makesdna
parentda38a0348a37de625296ed527bcae666a0c0fcb0 (diff)
Configurable start frame for movie clip datablocks as alternative to automatic start frame number
Number of start frame in opened image sequence used to be distinguished automatically in a way that file name used on open would be displayed at scene frame #1. But sometimes it's useful to have it manually configurable (like in cases when you're processing image sequence and replacing clip's filepath to postprocessed image sequence and want new clip to show at the same frame range as it was rendered from). Added Custom Start Frame flag to movie clip (could be accessed from Footage panel in clip editor) and Start Frame which means number of frame from sequence which would be displayed at scene frame #1. For example if you've got clip pointing to file render_00100.png and Start Frame of 100 this file would be displayed at scene frame #1, if Start Frame is 1 then this image would be displayed at scene frame #100,
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_movieclip_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_movieclip_types.h b/source/blender/makesdna/DNA_movieclip_types.h
index f073a1957dc..81d532fd247 100644
--- a/source/blender/makesdna/DNA_movieclip_types.h
+++ b/source/blender/makesdna/DNA_movieclip_types.h
@@ -85,6 +85,8 @@ typedef struct MovieClip {
int flag;
int len; /* length of movie */
+
+ int start_frame, pad;
} MovieClip;
typedef struct MovieClipScopes {
@@ -121,6 +123,7 @@ typedef struct MovieClipScopes {
/* MovieClip->flag */
#define MCLIP_USE_PROXY (1<<0)
#define MCLIP_USE_PROXY_CUSTOM_DIR (1<<1)
+#define MCLIP_CUSTOM_START_FRAME (1<<2)
#define MCLIP_TIMECODE_FLAGS (MCLIP_USE_PROXY|MCLIP_USE_PROXY_CUSTOM_DIR)