Giter Site home page Giter Site logo

pullusb / gp_clipboard Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 2.0 62 KB

Blender Addon - Grease pencil clipboard to copy/cut/paste strokes in place across layers and blends (world space copy/paste)

License: GNU General Public License v3.0

Python 100.00%
grease-pencil blender

gp_clipboard's Introduction

GP clipboard

Blender Addon - Grease pencil clipboard to copy/cut/paste strokes across layers and blends

Download latest

Download old (2.79) (right click, save Target as)


Description:

The default copy/paste of grease pencil strokes copy strokes using the coordinate relative to the object. In some cases it's usefull to copy "In place" (using world coordinate of strokes)
The cutting is also more user friendly.

Cut and Copy works accross multiple layers, Paste is only made on active layer.

You can also copy entires layers>frames (bake the stroke position if object is animated).

Button are localised in View3D > Toolbar > GPencil > GP clipboard

GP clipboard use the paper clip of your OS to store grease pencil strokes. This mean you can even paste your copied stroke in another blend or in a text file for later re-use. But be carefull not to overwrite you clipboard if you have a stroke you must not lose. (This will not happen if you're using a clipboard history manager like Ditto (windows only), wich I highly recommend ^^)

Thanks to Mathieu Chaptel for the discussions on core features.


Note for workflow Cut/Copy/Paste are automatically keymapped on ctrl + shift + X/C/V

If you want to assign another shortcut :

  • In the user preference > inputs:

  • unfold the "3Dview" section (or "Window" section if you want the shortcut to be active in multiple editor)

  • scroll down and click the add newbutton

  • enter the keymap of your choice in the key field

  • In the text field enter one of the following IDname (corresponding to operator):
    gp.copy_strokes, gp.cut_strokes, gp.paste_strokes

  • to map multi layers copy-paste use gp.copy_multi_strokes and gp.paste_multi_strokes


Todo:

  • Maybe let access to hardcoded filter/preference (as checkbox in the panel):

    • keep_empty = True (on cut) -> When all strokes are cutted the (key)frame is leaved empty (False : frame is deleted if no strokes left)
    • use_current_frame = True (on paste) -> when pasting use current (key)frame if exists (False: Create a new one at current time if needed)
  • Maybe add a checkbox in preferences to disable auto-shortcut


Changelog:

1.3.3:

  • fix: Get points uv_properties (used for brushed points)
  • fix: Trigger an update on each pasted strokes that force recalculate uv and fills that are sometimes badly drawn (works in 2.93+)

1.3.2:

  • fix: attribute error (cyclic attribute name changed in 2.92: draw_cyclic -> use_cyclic)
    • Supposed to be still compatible with 2.91 and before (untested).

1.3.1:

  • fix: Bug in keymap register that could affect other addon's keymap

1.3.0:

  • Feat: addon prefs, option to change the tab name

1.2.0:

  • Feat: copy a selection of layers with object transform baking

1.1.0:

  • Big bugfix, Paste in place now working for normal and parented layers

1.0.0:

  • First working update for 2.83

gp_clipboard's People

Contributors

pullusb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gp_clipboard's Issues

Feature request: other npanel category

hey man , great addon there , but could you add an option to select the actual n-panel name its displayed in ?
then i could group it together with the other grease pencil addons and not have so many different n panel tabs (the biggest shortcoming of blenders ui).

the bundled "grease pencil tools" addon has such a function and option in the preferences, so maybe you can copy the code from there

thanx a lot for your efforts so far

Delete when in sculpt mode

when in sculpt mode sometimes you might paste the wrong information from another frame. This will enable you to stay in sculpt mode and delete what you don't need and go get what you do all staying in sculpt mode.

Select option on draw mode

Hi Samuel,

First of all thanks a lot for you for this great addon!! It is very useful for a hand drawn animator.
Would it be possible if there is a "select lasso" option over cut/copy stoke options
on "draw mode". I know there are shortcuts for edit mode but switching modes frequently is
quite pain for someone uses softwares like Harmony or Tv paint.

Addition to that after selecting with lasso, transform options (move-rotate-scale) automatically appears on Harmony and that saves more time on that side as well. TvPaint has this option as a "stamp" function which allows using and transforming duplicates visually which is very handy.

Thanks again!

Easier hotkey customization

Customizing the hotkeys to be done within the addon area. perhaps something similar to this might make it easier for all the grease pencil virgins out there.

image

Past Textured strokes

Pasting textured strokes is uniforming the texture. other than that it's working like a charm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.