Giter Site home page Giter Site logo

box_deform's Introduction

Grease pencil Box deform

Blender addon - Modal that create temporary deforming rectangle around selected GP points.

Note : Since Blender 2.91, Box deform is integrated in the official addon Grease Pencil Tools bundled in Blender. You just have to activate it.

Want to support me? Check this page


Description

I first created this as a prototype following my request post : Cage deform active tool for grease pencil

Turns out this works really well as it is, so I added some shortcuts for usability and voilà !
Developed for Grease pencil, (mesh might be supported in the future.)

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
  • Delete / Backspace / ctrl+T / Tab(twice) : Cancel
  • M : Toggle Linear and Spline mode at any moment (disable autoswap on first use)
  • 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

Todo:

  • Find a way to detect other modal to use ESC key for cancelling when only one running
  • target meshes

Changelog:

0.2.5 - 2020-06-23:

  • 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.2.4 - 2020-06-20:

  • fix : Disable 'ctrl+Z' shortcut during modal (avoid crash when undoing in)

0.2.3 - 2020-06-17:

  • fix : Bug when a layer has no frames (prevent scanning frameless layers)
  • UX : Silent cancel if not GPencil object or wrong mode is used

0.2.2 - 2020-06-09:

  • fix : Paint mode, use bottom stroke when using 'draw on back' option
  • fix : Paint mode, scan strokes from active layer only

0.2.1 - 2020-05-26:

  • fix : correct multiframe edit bug

0.2.0 - 2020-05-26:

  • Feature : Allow other modes, Object deform whole GP object, GP Paint get the last stroke
  • Feature (fix) : possibility to relaunch the modal after returning in lattice edit with ctrl+Z
  • UX : temporarily enable release confirm for more natural control
  • UX : temporarily lower mouse/tablet drag threshold for more responsive control when moving points
  • syntax : renamed ops

0.1.2 - 2020-05-25:

  • fix : right depth, apply matrix_world to GP point coordinate

0.1.1 - 2020-05-23:

  • first stable version

box_deform's People

Contributors

kant avatar pullusb avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

box_deform's Issues

Crash when hitting Ctrl+Z directly after Ctrl+T

Hello, love the tool, thanks a lot for making it!

I have a reproducible crash to report:

  1. Create a New 2D Project.
  2. Ensure Box Deform is an enabled Add-on.
  3. Draw a simple stroke using the default pencil.
  4. Hit Ctrl+T
  5. Hit Ctrl+Z
  6. Blender immediately crashes to desktop.

Appears to happen with either deform type.
This is using Blender 2.83 LTS on Windows 10.

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.