Simple Copy or Cut Button Set
Posted: 14 Apr 2020, 11:13
What do they do?
The "Copy it Out" button works in two clicks:
1. first click, it provides a redish, free-hand line to draw around one or more elements on screen.
2. second click, it copies the outlined element(s) into a brush, LEAVING THE ORIGINAL ELEMENTS STILL ON SCREEN.
The "Cut it Out" button also works in two clicks:
1. first click, it provides a red, free-hand line to draw around one or more elements on screen.
2. second click, it cuts the outlined element(s) into a brush, REMOVING THE ORIGINAL ELEMENTS FROM THE SCREEN.
The strange thing about both buttons is that they perform two DIFFERENT operations, on first click, they let you define the area(s) to be cut (outlining areas), then click a second time to grab the area(s) outlined after the first click.
I think this two-stage functionality is a byproduct of the peculiar fact that any and all TVPaint Button commands are first read all the way through and loaded, THEN commands are processed, first to last. As an example, here is the listing for the "Copy it Out" button:
Code: Select all
Command: tv_SetActiveShape SELECTFREEHAND SMOOTH 0 AALIASING 0 KEEP 0 SUBPIXEL 3 OPTIMIZE 1
Key: Shape Select: Copy To CustomBrush
Key: Shape Select: Clear
Second time through, the Command to SelectFreeHand is ignored since areas have already been selected, but the follow-up Shape Select commands can now Copy To CustomBrush AND Clear.
Likewise, the "Cut it Out" button works the same way, first time through lets you SelectFreeHand, and second time through Cut To CustomBrush AND Clear.
How I use these Buttons:
I have assigned these buttons to two adjacent, Shortcut Keys, Q = Cut it Out and W = Copy it Out.
To Cut a Brush, I press Q key once so I can outline what I want to cut out of the image and put into a brush, then I press Q key again to make the cut happen.
To Copy a Brush, I press W key once so I can outline what I want to copy out of the image and put into a brush, then I press W key again to make the copy happen.
An interesting side benefit of this two part operation is that the outline can be edited to be extremely precise, and can select multiple areas to be captured into a brush. I discovered that when I draw around an area(s) to capture, of course the outlined area(s) becomes part of what will be grabbed, BUT if I right click and "edit" the existing outlines, I can SUBTRACT from what has already been selected, so the final outline can be pixel-perfect before I press the shortcut key a second time to capture the outlined area.
Normally, when you cut or copy, drawing the outline and capturing happens in one step, so you have to be very careful in drawing the outlined area, or you won't get what you want and you have to UNDO and re-cut.
Sven