gp_toolbox/README.md

182 lines
7.5 KiB
Markdown
Raw Normal View History

2021-01-10 16:47:17 +01:00
# GP toolbox
Blender addon - Various tool to help with grease pencil in animation productions.
2024-11-13 11:10:51 +01:00
### /!\ Main branch is currently broken, in migration to gpv3
2024-03-28 17:10:32 +01:00
**[Download latest](https://git.autourdeminuit.com/autour_de_minuit/gp_toolbox/archive/master.zip)**
2021-01-10 16:47:17 +01:00
**[Download for Blender 4.2 and below from release page](https://git.autourdeminuit.com/autour_de_minuit/gp_toolbox/releases)**
2024-11-11 15:35:27 +01:00
2021-03-20 15:30:04 +01:00
**[Demo video](https://www.youtube.com/watch?v=Htgao_uPWNs)**
2021-01-10 16:47:17 +01:00
2023-05-09 17:45:27 +02:00
**[Readme Doc in French](README_FR.md)**
It is recommended to enable _Grease Pencil Tools_ native Blender addon. Brings essentials features:
Canvas rotation, Box deform, Timeline scrubbing in viewport, Quick layer navigator.
2021-01-10 16:47:17 +01:00
---
## Description
<!-- ![pseudo color demo](https://github.com/Pullusb/images_repo/blob/master/GPT_pseudo_tint.gif)
*In this demo F9 is pressed to call the "redo panel" and modify the hue offset with constant update* -->
In sidebar (N) > Gpencil > Toolbox
<!-- - Pseudo tint color : Tints each GP layer of selected GP objects with a pseudo random tints to quickly identify which lines belong to which layer.
/!\ Using this will override the tint and tint factor on your layer (so they will be lost if you used it for a specific layer) -->
## Addon preferences
important point of addon preferences:
Set path to the palette folder (there is a json palette IO but you an also put a blend and use a blend importer)
Note about palette : For now the importer is not working with linked palette as it's not easy for animator (there are properties of the material you cannot access and the link grey-out fade the real color in UIlist preview)
2021-01-10 16:47:17 +01:00
### Environnement Variables
> Mainly for devellopers to set project environnement
Since 1.5.2, following _environnement variable_ can set the project properties in toolbox preferences at register launch:
`RENDER_WIDTH` : resolution x
`RENDER_HEIGHT` : resolution y
`FPS` : project frame rate
`PALETTES` : path to the blends (or json) containing materials palettes
`BRUSHES` : path to the blend containing brushes to load
2023-01-05 12:34:50 +01:00
`PREFIXES` : list of prefix (comma separated uppercase letters (2), an optional tooltip can be set after `:`, ex: 'LN:Line, CO:color, SH:Shadow') <!-- between 1 and 6 character -->
2021-07-20 18:58:46 +02:00
`SUFFIXES` : list of suffixes (comma separated uppercase letters of 2 character, ex: 'OL,UL')
`SEPARATOR` : Separator character to determine prefixes, default is '_' (should not be a special regex character)
### Expose native functionnality
The panel expose some attributes that are too "far" in the UI:
- Zoom 1:1 - Camera view take 100% zoom according to current scene resolution (ops `view3d.zoom_camera_1_to_1`)
- Zoom fit - Adjust view so camera frame takes full viewport spac (ops `view3d.view_center_camera`)
<!-- - autolock layer - tick layers'autolock -->
- In Front - the `In Front` property of the object to get an X-ray view
- passepartout camera - enable/disable + set opacity
- button and sliders to enable / disable / set opacity of single background camera images
**Edit line opacity** - Animators usually like to hide completely edit lines to have a better view of the drawing in edit/sculpt mode, lowering opacity also allows a better reading on what's selected.
This options is stored per layer per object but this apply on everything at once.
### Passive action
An "on save" Handler that trigger relative remap of all path can be enabled in addon prefs (disabled by default).
### function
2021-01-10 16:47:17 +01:00
- Mirror flip : If in cam view flip the camera X scale value (you can see and draw mnirrored to see problems)
<!-- - Overlay toggle : (toggle pref and overlay) -->
- quick access to scene camera passepartout toggle and opacity
- quick access to scene camera background images visibility with individual references toggle.
- Basic playblast and viewport playblast:
- dedicated resolution percentage value
- can auto launch and/or auto open folder at finished (option in addon preferences)
- Jump to GP keyframe :
2021-01-10 16:47:17 +01:00
- Choose key to Auto bind in addon prefs (since 0.9.3).
> Manual setup: Add two keymap shortcut in _windows_ or _screen(global)_ with indentifier `screen.gp_keyframe_jump`, one should have `next` toggled off to jump back
2021-01-10 16:47:17 +01:00
- GP paint cutter tool temporary switch shortcut
- Map manually to a key with `wm.temp_cutter` (This one needs "Any" as press mode) or `wm.sticky_cutter` (Modal sticky-key version)
- Snap cursor to GP canvas operator accessible with `view3d.cusor_snap`
- Map nanually (might be autoreplaced according to version) by replacing entry using `view3d.cursor3d` in 3D View category (defaut shortcut `Shift + Right-clic`)
- Follow cursor toggle : When activated the cursor follow the active the active object
- [breakdowner operator for object mode](https://blenderartists.org/t/pose-mode-animation-tools-for-object-mode/1221322), auto-keymap on : Shift + E
- Line extender help closing gaps between lines with control over layer target (-> need also control over frame targets)
- GP copy paste : world space cut-copy-paste (bake strokes). `Ctrl + Shift + X/C/V`
Store strokes in os'clipboard (easier cross blend copy)
cutting is use a more user friendly (leave boundary points of left strokes untouched).
Also Possible to copy whole selected layers.
2021-08-23 15:43:59 +02:00
<!-- - Auto update : you have an updater in the addon preference tabs (use the [CGcookie addon updater](https://github.com/CGCookie/blender-addon-updater)) -->
2021-01-10 16:47:17 +01:00
**Palette management**
In material submenu you have mutliple new entry:
- Copy Materials To Selected : copy all material to other selected GP (difference with Ctrl+L > materials is that it doesn't erase materials, only append those that are not in other's materials stack)
- Load/Save Json palette : Save/load materials externally to a json file from/to the active material stack.
- Load Color palette : same as the load above exept it loads directly from a blend file (all the material that the blend contains)
2021-12-22 19:25:35 +01:00
- Clean materials
**Shortcuts**
Viewport:
- Layer Picker from closest stroke in paint mode using quick press on `W` for stroke (and `alt+W` for fills)
- Material Picker (`S` and `Alt+S`) quick trigger, change is only triggered if key is pressed less than 200ms
- `F2` in Paint and Edit to rename active layer
- `Insert` add a new layer (same as Krita)
- `Shift + Insert` add a new layer and immediately pop-up a rename box
- `page up / page down` change active layer up/down with a temporary fade (settings in addon prefs)
- `Shift + E` breakdown animation in object Mode
- `Ctrl + Shift + X/C/V` - Worldspace cut/copy/paste selected strokes/points:
Dopesheet:
- `Ctrl + Shift + X` Cut and send to layer
- `Ctrl + Shift + D` Duplicate and send to layer
Sculpt:
- point/stroke filter shortcut on `1`, `2`, `3` as toggles (similar to edit mode native shortcuts)
2021-01-10 16:47:17 +01:00
### Where ?
Panel in sidebar : 3D view > sidebar 'N' > Gpencil
<!--
2021-01-10 16:47:17 +01:00
## Todo:
- Allow to render resolution from cam name
- Update multi output system:
- use render layers + file outputs instead of batch by tweaking visibility
- BG Playblast enhancement:
- Add a prefs to fallback to "simple" render.
- Settings-io for projects : Rsolution du film, palette folder, render settings...
- expose "tool setting" of canvas handling in sidebar (visible only in draw mode)
- Move automatically view to match GP Front (depending on Gpencil view settings)
- move GP keyframes selection and Object keyframe selection simultaneouly (Already Done by Tom Viguier at [Andarta](https://gitlab.com/andarta-pictures) -->
2021-01-10 16:47:17 +01:00
---
Consult [Changelog here](CHANGELOG.md)