diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-03-19 10:32:36 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-03-19 10:32:36 +0300 |
commit | 8b4b8d4dd21f277ceb71a89b2ea62f7398f33099 (patch) | |
tree | 0b2cb6817d8710e84167af36e44258f127ca87bb /source/blender/src/drawnla.c | |
parent | 819fc06a80269012dcf920b5dc2f79bf4b417149 (diff) |
== Preview Range ==
Preview Range is a useful tool for animating (espcially on longer timelines). It allows you to only run through a limited set of frames to quickly preview the timing of a section of movement without going through the whole timeline. It means you don't have to set/reset start/end frame for rendering everytime you wish to only preview a region of frames.
Hi Ton,
Attached is a patch (I know you've already got lots of them in the tracker ;-) ) for a feature that I've sometimes wanted. It seems that this sort of thing is supported in other packages, but I can't be sure.
Note: I may have left in a few bits and pieces I didn't mean to in the patch (this is off a source tree which had quite a few revisions in it, all of which was experimental)
== Preview Range ==
Preview range is useful for animating (espcially on longer timelines). It allows you to only run through a limited set of frames to quickly preview the timing of a section of movement without going through the whole timeline. It means you don't have to set/reset start/end frame for rendering everytime you wish to only preview a region of frames.
* 'Ctrl P' in Action/NLA/Timeline sets preview range. Click+drag to form selection-box defining region of frames to preview
* 'Alt P' in Action/NLA/Timeline to clear preview range
* 'Pre' button beside Start/End fields in timeline toggles whether start/end fields refer to scene or preview
* 'Ctrl Rightarrow' and 'Ctrl Leftarrow' jump to start/end of preview region when it is set
* 'S' and 'E' set the start/end frames of preview region when it is set (just like normally) in Timeline only
* In Action/NLA editors, frames out of preview region are now drawn darkened when preview-region is set
See the following page for more info later:
http://wiki.blender.org/index.php/User:Aligorith/Preview_Range
Diffstat (limited to 'source/blender/src/drawnla.c')
-rw-r--r-- | source/blender/src/drawnla.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/drawnla.c b/source/blender/src/drawnla.c index 0368f2984ea..6704d360f96 100644 --- a/source/blender/src/drawnla.c +++ b/source/blender/src/drawnla.c @@ -711,14 +711,19 @@ void drawnlaspace(ScrArea *sa, void *spacedata) /* the right hand side, with strips and keys */ draw_nla_strips_keys(G.snla); - /* Draw current frame */ + glViewport(ofsx+G.v2d->mask.xmin, ofsy+G.v2d->mask.ymin, ( ofsx+G.v2d->mask.xmax-1)-(ofsx+G.v2d->mask.xmin)+1, ( ofsy+G.v2d->mask.ymax-1)-( ofsy+G.v2d->mask.ymin)+1); glScissor(ofsx+G.v2d->mask.xmin, ofsy+G.v2d->mask.ymin, ( ofsx+G.v2d->mask.xmax-1)-(ofsx+G.v2d->mask.xmin)+1, ( ofsy+G.v2d->mask.ymax-1)-( ofsy+G.v2d->mask.ymin)+1); myortho2 (G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax); + + /* Draw current frame */ draw_cfra_action(); /* draw markers */ draw_markers_timespace(); + + /* Draw preview 'curtains' */ + draw_anim_preview_timespace(); /* Draw scroll */ mywinset(curarea->win); // reset scissor too |