Skip to content

gakutada/greasepencil-addon

 
 

Repository files navigation

Grease pencil tools

Blender addon - Extra tools for Grease Pencil.

Note : This addon is bundled directly in Blender (starting at 2.91).

This repository is the developpement version (Usually stable)

You can install this version side by side with the official one (check version number for the most recent).
Just activate only one of the two otherwise you'll get an error


Add option in Tab Grease Pencil

Box deform on Ctrl+T

Example with lattice subdiv and spline deformations.

box demo

How to use: (same tutorial in addon preferences)
Use the shortcut Ctrl + T in available modes
The lattice box is generated facing your view so be sure to face canvas to avoid unintentional anamorphosis offset
Then use following shortcuts (also displayed in topbar):

Modes and deformation target:

  • Object mode : The whole GP object is deformed
  • GPencil Edit mode : Deform Selected points
  • Gpencil Paint : Deform last Strokes

Shortcuts (also displayed in topbar):

  • Spacebar / Enter : Confirm (Combine with Shift to let the lattice in place)
  • Delete / Backspace / ctrl+T / Tab(twice) : Cancel
  • M : Toggle Linear and Spline mode at any moment
  • 1-9 top row number : Shortcut to subdivide box
  • Ctrl + arrows-keys : Subdivide the box incrementally in individual X/Y axis

Notes :

If you return in box deform after applying with a ctrl+Z, you need to hit ctrl+T again to revive the modal.

A cancel warning will be displayed the first time you hit Tab (to avoid mis-canceling)

Multiframe edit selection works but you will only see the current frame during the modal

Rotate canvas

demo canvas rotate gif

Customise shortcut in addons preferences, Default ctrl + alt + right-Click.
Shortcut changed are refreshed upon modifications.

preferences canvas rotate gif

Use Hud: Show angle value and lines.

Reset view (free navigation only): Click and release immediately without rotation to reset (up view point to world Z).

Incremental rotate Use Shift to increment rotation by a user-defined degree (in addon pref)

Save/restore camera rotation use button in sidebar

Viewport timeline scrubbing

Use Alt + Mid-Clic to call viewport timeline (customisable in addon prefs)

Use Ctrl to snap on keys

Options:

Always snap option snap on the keys

Rolling mode Discard timing information to jump quickly between keys

You have a lot more option to customise the Graphical aspect of the timeline.

Straight stroke

Straighten the stroke between first ans last point, keeping the points proportionally distant from each other.
You can affect influence in the redo panel (press F9 to pop up the redo panel).
Influence amount is remembered for next use (You can shift+click on the button to reset and force the use of 100% influence)

Import textured brush pack

Install included Grease pencil textured brush pack made by pepeland (Daniel Martinez Lara)
This is available in the sidebar > Tool > Brushes panel in the brush dropdown menu (where you can reset brush)
/!\ This will be removed once blender official asset manager will be active


Changelog

1.6.0 - 2022-03-14

  • added: Camera mirror flip operator

1.5.7 - 2022-03-14

  • fix: Error using timeline scrub snap in blender 3+ (api change)

1.5.6 - 2022-02-14

  • changed: brush bundle url to https

1.5.5 - 2022-02-13

  • changed: brush pack download url to point to blender.org
  • fix: Disable registers in background mode, avoid keymap error
  • changed: follow new blender license convention

1.5.4 - 2022-01-26

  • fix: keep viewpoint when reseting rotation within camera

1.5.3 - 2021-08-29

  • feat: added a checkbox to disable tiemline-scrub
  • fix: added numpad_enter to valid box_deform transform

1.5.2 - 2021-07-11

  • feat: boxdeform not limited to active object in object mode. Affect all selected grease pencils objects.

1.5.1 - 2021-07-11

  • feat: boxdeform keep lattice on confirm (use shift + confirm buttons)

1.5.0 - 2021-05-28

  • feat: New rotate canvas pivot mode in camera view (enabled by default). rotate by view center pivot instead of camera center.
  • fix: Rotate canvas precision (wasn't rotating exactly from area center) Now compatible with region overlap toggled off

1.4.3 - 2021-04-14

  • fix: box deform working on grease pencil object with multiple instances

1.4.2 - 2021-03-30

  • Enable Box deform with multi-lattice if blender version >= 2.93
  • Fix error when trying to use snap with the OSD timeline deactivated

1.4.0 - 2021-03-19

  • Match updates from official 1.4.0 bundled in blender (2.93)

1.1.6 - 2021-01-24:

  • fix: correct keymap register

1.1.5 - 2020-10-25:

  • fix: Error when querying url from linux (need ssl context)

1.1.4 - 2020-10-24:

  • change brush pack installation to a gitlab web download

1.1.3 - 2020-10-06:

  • Spellcheck: Capitalize words in displayed text

1.1.2 - 2020-10-02:

  • Addon is now in blender Master official !
  • added grease pencil team names
  • fix: Typo in text displayed boxdeform modal
  • UI: added box layout

1.1.1 - 2020-09-28:

  • fix: incomplete brush install
  • change : default rotate canvas is now on ctrl+alt+MMB

1.1.0 - 2020-09-27:

  • brush pack included in addon
  • change tab UI name (category) in sidebar in addon prefs.

1.0.3 - 2020-09-20:

  • fix: redownload brush pack when using operator to get update (but dl url is in a container and change at every upload)...

1.0.2 - 2020-09-15:

  • Integrated rotate canvas
  • fix: some brush pack import ops bug
  • fix: brush pack download failing on linux (needed specific method of urllib import and ssl certificate)
  • code: slight refactor for get_addonpref function (placed and loaded from prefs.py file)

0.1.1 - 2020-09-14:

0.0.5 - 2020-07-04:

  • fix: Bug throwing error when trying modal revival after ctrl+Z back to lattice.
  • refactor: Cleaner use of is_running variable, attached to WM variable instead of prefs (Thanks to Antonio Vasquez)

0.0.4 - 2020-07-04:

  • fix: added a property in pref to detect if modal is already running so pressing the UI button again will not crash.

0.0.3 - 2020-07-04:

  • syntax: correction on HUD text, Preferences, Title cased all words in buttons to fit blenders UI.

0.0.2 - 2020-06-23:

  • box deform:

    • fix: paint mode deforming strokes on another layer
    • fix: force view overlay during modal to avoid losing sight of lattice
    • feature: autoswap mode between Linear and Bspline
    • UI: preference checkbox to disable new autoswap feature
    • code: refactor, deleted useless property group

0.0.1 - 2020-06-21:

  • Initial version from standalone Box_deform 0.2.4
  • sligth code refactor
  • Deleted/changed funny info messages in box deform (when pressing 'H' or trying to ctrl+T on object having already a Lattice)
  • Deleted some useless comments
  • CamelCased the classes
  • Changed id_names to avoid collisions
  • added licence in each files
  • Changed straight_stroke from GP_refine_stroke to work according to context ('PAINT' / 'EDIT')
  • added box deform to VIEW3D_MT_transform_object menu (with condition to appear only if context object exists and is GP)
  • added box deform to VIEW3D_MT_edit_gpencil_transform menu
  • added straight stroke to VIEW3D_MT_edit_gpencil_stroke menu

About

Blender addon - Pack of extended tool for Grease pencil

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%