Blender Git Loki
Git Commits -> Revision 14b9517
Revision 14b9517 by Joshua Leung (master) November 30, 2014, 12:52 (GMT) |
Grease Pencil - Storyboarding Features (merge from GPencil_EditStrokes branch) This merge-commit brings in a number of new features and workflow/UI improvements for working with Grease Pencil. While these were originally targetted at improving the workflow for creating 3D storyboards in Blender using the Grease Pencil, many of these changes should also prove useful in other workflows too. The main highlights here are: 1) It is now possible to edit Grease Pencil strokes - Use D Tab, or toggle the "Enable Editing" toggles in the Toolbar/Properties regions to enter "Stroke Edit Mode". In this mode, many common editing tools will operate on Grease Pencil stroke points instead. - Tools implemented include Select, Select All/Border/Circle/Linked/More/Less, Grab, Rotate, Scale, Bend, Shear, To Sphere, Mirror, Duplicate, Delete. - Proportional Editing works when using the transform tools 2) Grease Pencil stroke settings can now be animated NOTE: Currently drivers don't work, but if time allows, this may still be added before the release. 3) Strokes can be drawn with "filled" interiors, using a separate set of colour/opacity settings to the ones used for the lines themselves. This makes use of OpenGL filled polys, which has the limitation of only being able to fill convex shapes. Some artifacts may be visible on concave shapes (e.g. pacman's mouth will be overdrawn) 4) "Volumetric Strokes" - An alternative drawing technique for stroke drawing has been added which draws strokes as a series of screen-aligned discs. While this was originally a partial experimental technique at getting better quality 3D lines, the effects possible using this technique were interesting enough to warrant making this a dedicated feature. Best results when partial opacity and large stroke widths are used. 5) Improved Onion Skinning Support - Different colours can be selected for the before/after ghosts. To do so, enable the "colour wheel" toggle beside the Onion Skinning toggle, and set the colours accordingly. - Different numbers of ghosts can be shown before/after the current frame 6) Grease Pencil datablocks are now attached to the scene by default instead of the active object. - For a long time, the object-attachment has proved to be quite problematic for users to keep track of. Now that this is done at scene level, it is easier for most users to use. - An exception for old files (and for any addons which may benefit from object attachment instead), is that if the active object has a Grease Pencil datablock, that will be used instead. - It is not currently possible to choose object-attachment from the UI, but it is simple to do this from the console instead, by doing: context.active_object.grease_pencil = bpy.data.grease_pencil["blah"] 7) Various UI Cleanups - The layers UI has been cleaned up to use a list instead of the nested-panels design. Apart from saving space, this is also much nicer to look at now. - The UI code is now all defined in Python. To support this, it has been necessary to add some new context properties to make it easier to access these settings. e.g. "gpencil_data" for the datablock "active_gpencil_layer" and "active_gpencil_frame" for active data, "editable_gpencil_strokes" for the strokes that can be edited - The "stroke placement/alignment" settings (previously "Drawing Settings" at the bottom of the Grease Pencil panel in the Properties Region) is now located in the toolbar. These were more toolsettings than properties for how GPencil got drawn. - "Use Sketching Sessions" has been renamed "Continuous Drawing", as per a suggestion for an earlier discussion on developer.blender.org - By default, the painting operator will wait for a mouse button to be pressed before it starts creating the stroke. This is to make it easier to include this operator in various toolbars/menus/etc. To get it immediately starting (as when you hold down DKEy to draw), set "wait_for_input" to False. - GPencil Layers can be rearranged in the "Grease Pencil" mode of the Action Editor - Toolbar panels have been added to all the other editors which support these. 8) Pie menus for quick-access to tools A set of experimental pie menus has been included for quick access to many tools and settings. It is not necessary to use these to get things done, but they have been designed to help make certain common tasks easier. - Ctrl-D = The main pie menu. Reveals tools in a context sensitive and spatially stable manner. - D Q = "Quick Settings" pie. This allows quick access to the active layer's settings. Notably, colours, thickness, and turning onion skinning on/off. |
Commit Details:
Full Hash: 14b951747f6a93a8e87a25f5001d9e3afc6528b1
Parent Commit: 46c80d5
Lines Changed: +4354, -390
2 Added Paths:
/source/blender/editors/gpencil/gpencil_select.c (+839, -0) (View)
/source/blender/editors/gpencil/gpencil_utils.c (+166, -0) (View)
/source/blender/editors/gpencil/gpencil_utils.c (+166, -0) (View)
67 Modified Paths:
/release/scripts/modules/bpy_extras/keyconfig_utils.py (+4, -1) (Diff)
/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+424, -6) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+25, -7) (Diff)
/release/scripts/startup/bl_ui/space_dopesheet.py (+7, -3) (Diff)
/release/scripts/startup/bl_ui/space_image.py (+19, -4) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+45, -0) (Diff)
/release/scripts/startup/bl_ui/space_sequencer.py (+29, -0) (Diff)
/release/scripts/startup/bl_ui/space_view3d.py (+13, -1) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+11, -5) (Diff)
/source/blender/blenkernel/BKE_context.h (+11, -0) (Diff)
/source/blender/blenkernel/BKE_gpencil.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+32, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+44, -5) (Diff)
/source/blender/blenloader/intern/readfile.c (+29, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -0) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+101, -0) (Diff)
/source/blender/editors/animation/anim_channels_edit.c (+75, -3) (Diff)
/source/blender/editors/animation/anim_filter.c (+92, -16) (Diff)
/source/blender/editors/animation/keyframes_draw.c (+34, -0) (Diff)
/source/blender/editors/gpencil/CMakeLists.txt (+2, -0) (Diff)
/source/blender/editors/gpencil/drawgpencil.c (+544, -149) (Diff)
/source/blender/editors/gpencil/editaction_gpencil.c (+17, -0) (Diff)
/source/blender/editors/gpencil/gpencil_buttons.c (+4, -5) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+622, -19) (Diff)
/source/blender/editors/gpencil/gpencil_intern.h (+78, -3) (Diff)
/source/blender/editors/gpencil/gpencil_ops.c (+156, -8) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+34, -65) (Diff)
/source/blender/editors/gpencil/gpencil_undo.c (+11, -1) (Diff)
/source/blender/editors/include/ED_anim_api.h (+1, -0) (Diff)
/source/blender/editors/include/ED_gpencil.h (+16, -0) (Diff)
/source/blender/editors/include/ED_keyframes_draw.h (+5, -4) (Diff)
/source/blender/editors/include/ED_transform.h (+2, -0) (Diff)
/source/blender/editors/render/render_opengl.c (+2, -0) (Diff)
/source/blender/editors/screen/area.c (+12, -2) (Diff)
/source/blender/editors/screen/screen_context.c (+114, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+5, -1) (Diff)
/source/blender/editors/space_action/action_edit.c (+55, -9) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)
/source/blender/editors/space_clip/clip_buttons.c (+4, -0) (Diff)
/source/blender/editors/space_clip/space_clip.c (+6, -1) (Diff)
/source/blender/editors/space_image/image_buttons.c (+2, -0) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+1, -0) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+1, -0) (Diff)
/source/blender/editors/space_node/node_buttons.c (+4, -0) (Diff)
/source/blender/editors/space_node/space_node.c (+7, -0) (Diff)
/source/blender/editors/space_sequencer/sequencer_buttons.c (+4, -0) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+6, -2) (Diff)
/source/blender/editors/space_time/space_time.c (+11, -0) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+7, -2) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+2, -0) (Diff)
/source/blender/editors/transform/transform.c (+6, -0) (Diff)
/source/blender/editors/transform/transform_conversions.c (+239, -1) (Diff)
/source/blender/editors/transform/transform_generics.c (+6, -0) (Diff)
/source/blender/editors/transform/transform_ops.c (+13, -9) (Diff)
/source/blender/makesdna/DNA_action_types.h (+5, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+75, -35) (Diff)
/source/blender/makesrna/intern/rna_action.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+240, -13) (Diff)
/source/blender/makesrna/intern/rna_movieclip.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+3, -0) (Diff)
/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+424, -6) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+25, -7) (Diff)
/release/scripts/startup/bl_ui/space_dopesheet.py (+7, -3) (Diff)
/release/scripts/startup/bl_ui/space_image.py (+19, -4) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+45, -0) (Diff)
/release/scripts/startup/bl_ui/space_sequencer.py (+29, -0) (Diff)
/release/scripts/startup/bl_ui/space_view3d.py (+13, -1) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+11, -5) (Diff)
/source/blender/blenkernel/BKE_context.h (+11, -0) (Diff)
/source/blender/blenkernel/BKE_gpencil.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+32, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+44, -5) (Diff)
/source/blender/blenloader/intern/readfile.c (+29, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -0) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+101, -0) (Diff)
/source/blender/editors/animation/anim_channels_edit.c (+75, -3) (Diff)
/source/blender/editors/animation/anim_filter.c (+92, -16) (Diff)
/source/blender/editors/animation/keyframes_draw.c (+34, -0) (Diff)
/source/blender/editors/gpencil/CMakeLists.txt (+2, -0) (Diff)
/source/blender/editors/gpencil/drawgpencil.c (+544, -149) (Diff)
/source/blender/editors/gpencil/editaction_gpencil.c (+17, -0) (Diff)
/source/blender/editors/gpencil/gpencil_buttons.c (+4, -5) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+622, -19) (Diff)
/source/blender/editors/gpencil/gpencil_intern.h (+78, -3) (Diff)
/source/blender/editors/gpencil/gpencil_ops.c (+156, -8) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+34, -65) (Diff)
/source/blender/editors/gpencil/gpencil_undo.c (+11, -1) (Diff)
/source/blender/editors/include/ED_anim_api.h (+1, -0) (Diff)
/source/blender/editors/include/ED_gpencil.h (+16, -0) (Diff)
/source/blender/editors/include/ED_keyframes_draw.h (+5, -4) (Diff)
/source/blender/editors/include/ED_transform.h (+2, -0) (Diff)
/source/blender/editors/render/render_opengl.c (+2, -0) (Diff)
/source/blender/editors/screen/area.c (+12, -2) (Diff)
/source/blender/editors/screen/screen_context.c (+114, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+5, -1) (Diff)
/source/blender/editors/space_action/action_edit.c (+55, -9) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)
/source/blender/editors/space_clip/clip_buttons.c (+4, -0) (Diff)
/source/blender/editors/space_clip/space_clip.c (+6, -1) (Diff)
/source/blender/editors/space_image/image_buttons.c (+2, -0) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+1, -0) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+1, -0) (Diff)
/source/blender/editors/space_node/node_buttons.c (+4, -0) (Diff)
/source/blender/editors/space_node/space_node.c (+7, -0) (Diff)
/source/blender/editors/space_sequencer/sequencer_buttons.c (+4, -0) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+6, -2) (Diff)
/source/blender/editors/space_time/space_time.c (+11, -0) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+7, -2) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+2, -0) (Diff)
/source/blender/editors/transform/transform.c (+6, -0) (Diff)
/source/blender/editors/transform/transform_conversions.c (+239, -1) (Diff)
/source/blender/editors/transform/transform_generics.c (+6, -0) (Diff)
/source/blender/editors/transform/transform_ops.c (+13, -9) (Diff)
/source/blender/makesdna/DNA_action_types.h (+5, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+75, -35) (Diff)
/source/blender/makesrna/intern/rna_action.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+240, -13) (Diff)
/source/blender/makesrna/intern/rna_movieclip.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+3, -0) (Diff)