Warping a CutBrush

Share your custom panels, brushes, papers... (you need to be registered to read posts in this section)
Post Reply
Svengali
Posts: 1081
Joined: 28 Dec 2006, 10:08
Contact:

Warping a CutBrush

Post by Svengali » 10 Jan 2011, 01:39

A little while ago I requested a Warping tool for the current CutBrush be added to TVPaint's next update.

A reply from ZigOtto suggested to me a way to script exactly the kind of warping tool I had requested. Through several cycles of design and refinement, I finally created exactly the warping-cutbrush tool I wanted, with the following features:
warp cutbrush - during warp.jpg
Some notes on using it.

1. Shortcut Key Assignment Recommended: The script is assigned to a button (called the warp brush button) which ideally, is then assigned to a shortcut key.
2. Always Press Button (or shortcut key) Twice: The warping process requires that you press the shortcut key twice. First, to drop the current cutbrush in preparation for the warp, and Second to pickup the cutbrush after the warping has been completed.
3. Drop at Center: If the Warp Brush button isn't assigned to a shortcut key, pressing the button OUTSIDE the frame causes the cutbrush to be dropped in the center of the frame, ready for warping. Pressing the Warp Brush button a second time picks up the newly deformed cutbrush.
4. Secret menu (Fig 2): When in warp/edit mode you can right click to bring up a menu of options: Reset positions will home the red control box and points back to the original green bounding box. The other orientation controls do what they say.
5. New Default Orientation: And a tip: simply clicking the warp brush button(or shortcut key) TWICE for a cutbrush that's being scaled or rotated, will make the rotated or scaled orientation become the new, default cutbrush's home position.
6. If it Breaks: If for some reason you end up with a "hot pink" layer that is labeled DeleteMe you may do exactly that: DELETE IT. Normally, this temporary layer (that is created just while warping the cutbrush) is automatically erased after the second time you press the Warp Brush button. But mistakes happen. :(
warp cutbrush - rightclick popup.jpg
I'm still hoping for an integrated Warp CutBrush tool in the next update!

NOTE: While this version of the Warping Tool works with TVPaint 9, a new version is available that works with TVPaint 10. See zip file further down this thread... Sven
You do not have the required permissions to view the files attached to this post.
Last edited by Svengali on 11 Apr 2012, 16:52, edited 1 time in total.

User avatar
Elodie
Site Admin
Posts: 13321
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Warping a CutBrush

Post by Elodie » 10 Jan 2011, 09:39

Thanks for sharing this. :D
Questions or problems regarding the forum ? Please contact me by PM
Question regarding TVPaint or need a quotation ? Please contact me by email

User avatar
ZigOtto
Posts: 4103
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: Warping a CutBrush

Post by ZigOtto » 10 Jan 2011, 11:18

Cool !
... and the "secret" menu to Reset the corners position is a handy addition.
thanks Sven, as usual, your contributions are always valuable, properly scripted, and very well documented.
:wink:

Svengali
Posts: 1081
Joined: 28 Dec 2006, 10:08
Contact:

Re: Warping a CutBrush

Post by Svengali » 10 Jan 2011, 14:03

Thank you for the kind words Zig and for testing the earlier versions of the script. Just to be clear, the "secret menu" isn't part of my script, it's part of the layer warping tool. I just happened to find it when I right clicked while working on the Warp CutBrush script. I could find no reference to it in the documentation and that's why I called it a "secret menu".


Sven

User avatar
ZigOtto
Posts: 4103
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: Warping a CutBrush

Post by ZigOtto » 10 Jan 2011, 14:29

ah, I've never right-clicked before when using this tool, so it's a discovery to me too !
this program is somehow "magical" : you think you know it perfectly in its deeper corners,
and you're always discovering some new "undocumented" things/commands, "secretly" hidden here and there ... :)

Svengali
Posts: 1081
Joined: 28 Dec 2006, 10:08
Contact:

Re: Warping a CutBrush (updated for 10)

Post by Svengali » 11 Apr 2012, 05:56

New WarpCutBrush script, edited to work in TVP 10. (New change in the tv_Preserve command was the problem, I think).

Replace the previous button with that found in the TVPX zipped below. Script is now embedded as suggested. :D

Feedback any problems, thanks.

Sven
You do not have the required permissions to view the files attached to this post.

User avatar
idragosani
Posts: 987
Joined: 06 May 2008, 00:39
Location: Germantown MD
Contact:

Re: Warping a CutBrush

Post by idragosani » 11 Apr 2012, 13:09

Thanks, Sven, it works great now.
Brett W. McCoy -- http://www.brettwmccoy.com
TVP Pro 10 : Intel i7 2600 3.4 GHz : 8GB RAM : Ubuntu Studio 14.04 : Cintiq 21UX

User avatar
D.T. Nethery
Posts: 2078
Joined: 27 Sep 2006, 19:19

Re: Warping a CutBrush (updated for 10)

Post by D.T. Nethery » 11 Apr 2012, 18:22

Svengali wrote:New WarpCutBrush script, edited to work in TVP 10. (New change in the tv_Preserve command was the problem, I think).

Thank you ! The new one works fine in TVPaint 10 for Mac.

User avatar
NathanOtano
Posts: 852
Joined: 01 Apr 2014, 07:07
Location: Paris, France
Contact:

Re: Warping a CutBrush

Post by NathanOtano » 13 Dec 2015, 20:50

Awesome, thanks!

EDIT : I had a bug, for me it automatically stamped the brush without the modifications at the end. I think it was going to far in my undo history so i removed TV_Undo line 55 and it worked fine since then.
Storyboard, animation and design work : http://nathanotano.tumblr.com/
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests