more logic behaviour when deleting the first frame(s) of a layer

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

more logic behaviour when deleting the first frame(s) of a layer

Post by Peter Wassink »

When you are anywhere on the tail of a layer and you delete a selection of frames (or just one), the layer remains at its start position and the frames after the selection are shifted to the left.
so far so good.

My request is that when a selection of frames on a layer includes the first frame, deleting this selection, should leave the remaining frames at the position that they were
In by far the most cases i delete the first part of a layer to trim it to match other layers, meaning the rest of the layer should stay put.
Now, after deleting
begin frames, i always have to re-shift the remains back to where they were before.

the general logic in layer behaviour when deleting frames should be:
deleting frames lets the layer stay in position on the timeline

What do others think?
Last edited by Peter Wassink on 29 Aug 2020, 00:35, edited 2 times in total.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
Paul Fierlinger
Posts: 8100
Joined: 03 May 2008, 12:05
Location: Pennsylvania USA
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Paul Fierlinger »

I agree and use this quite often.
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
User avatar
slowtiger
Posts: 2889
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by slowtiger »

+1
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
schwarzgrau
Posts: 1238
Joined: 23 Jan 2012, 22:08
Location: Offenbach / Germany
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by schwarzgrau »

Yea +1 from me too
Windows 11 22H2 / TVP 11.7.0 PRO WIBU / Cintiq 22HD
Windows 11 22H2 / TVP 11.7.0 PRO WIBU / Mobile Studio Pro 16" (2019)
Android 13 / TVP 11.7.0 / Galaxy Tab 7 FE
INSTAGRAM
2dbert
Posts: 80
Joined: 08 Aug 2008, 20:49

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by 2dbert »

I don't object, but wouldn't it be quite easy to just split the layer, then delete the layer containing the first unwanted frames?
Mac OSX Version 10.9 - 2GHz Intel Core 64(? I think so at least)bit - 4GB 1600 MHz DDR3 - Intel HD Graphics 4000 1024 MB
Yiynova MSP19U
TvPaint Animation 11.0.6 Pro
User avatar
Paul Fierlinger
Posts: 8100
Joined: 03 May 2008, 12:05
Location: Pennsylvania USA
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Paul Fierlinger »

Sure, that's the damn inconvenient workaround. That's a whole lot of extra clicks.
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
Svengali
Posts: 1552
Joined: 28 Dec 2006, 10:08

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Svengali »

Here's a button/script called "DELETE FIRST" which I think does what you propose, Peter.

Here are the rules for using:


1. BE SURE TO TEST ON NON-CRITICAL PROJECT FIRST TO MAKE SURE YOU UNDERSTAND
AND TRUST HOW IT WORKS.

2.ONLY USE when you are deleting the BEGINNING FRAME (AND ONE-OR-MORE
FOLLOWING FRAMES) from the current layer. Note that the beginning frame
need not be frame number 1.

3. Start by selecting the frames to be removed (always include the beginning frame)
on the current layer.

4. Click the "Delete First" button.

5. Result on the current layer will remove the selected frames and
reposition the remaining frames so they maintain their original
positions.

If you try it, please post problems or suggested changes/enhancements, thanks.

Sven
Attachments
DeleteFirst.tvpx
(106.5 KiB) Downloaded 922 times
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
D.T. Nethery
Posts: 4125
Joined: 27 Sep 2006, 19:19

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by D.T. Nethery »

Peter Wassink wrote: 28 Aug 2020, 16:46
the general logic in layer behaviour when deleting frames should be:
deleting frames lets the layer stay in position on the timeline

What do others think?
+1

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
User avatar
D.T. Nethery
Posts: 4125
Joined: 27 Sep 2006, 19:19

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by D.T. Nethery »

2dbert wrote: 30 Aug 2020, 19:55 I don't object, but wouldn't it be quite easy to just split the layer, then delete the layer containing the first unwanted frames?
That is a workaround I use , but as Paul mentions it is a bit of a pain to do it like that.

I notice that the always helpful Svengali has posted a script to accomplish this , so I'm looking forward to trying Sven's script . However, I still agree with Peter's request to have the default behaviour be : deleting frames lets the layer stay in position on the timeline .

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
User avatar
Paul Fierlinger
Posts: 8100
Joined: 03 May 2008, 12:05
Location: Pennsylvania USA
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Paul Fierlinger »

Svengali's script is very simple and direct; one button called, Delete First, and that's precisely what happens when you underline any amount of frames and click on the button; the selected frames get deleted without causing the layer to jump to the left.
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Peter Wassink »

Maybe its an idea to have the "lock position" option (handsymbol in the layer header) play a role.

when selected the layer does not move.
when unselected the layer jumps to remain at its old start position.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Xavier
Posts: 1852
Joined: 01 Oct 2019, 11:08

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Xavier »

Hi, I just finished adding a bunch of deletion options to the timeline contextual menu. This will be available in the future release 11.5.1 :)

Could you please just tell, how you'd name these different options ?
- let empty : keep the layer instances in place but clear their content
- shift previous : remove the layer instances, and shift the previous instances from the left to fill the gap
- pull next : remove the layer instances, and pull the next instances from the right to fill the gap

Regarding the two latter options, would "shift left" and "shift right" be significant enough for everyone ? When you delete instances in the middle of the layer, it's not that obvious to understand what it will do...
I've be thinking about using "-> forward" and "backward <-", for example. What do you think ?

delete_options.png
delete_options.png (13.56 KiB) Viewed 17332 times
Thanks for using TVPaint :mrgreen:
User avatar
Paul Fierlinger
Posts: 8100
Joined: 03 May 2008, 12:05
Location: Pennsylvania USA
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Paul Fierlinger »

Thinking out loud here:
Keep emptied instances in place
Replace emptied instances with frames to the left
Replace emptied instances with frames to the right

SHORTER:

Keep empty
Replace from left
Replace from right

PERHAPS BETTER:

Fill gap from left
Fill gap from right
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
Xavier
Posts: 1852
Joined: 01 Oct 2019, 11:08

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Xavier »

Thanks for the ideas ! yes, "fill gap" could be significant enough :)
User avatar
Paul Fierlinger
Posts: 8100
Joined: 03 May 2008, 12:05
Location: Pennsylvania USA
Contact:

Re: more logic behaviour when deleting the first frame(s) of a layer

Post by Paul Fierlinger »

Glad for the opportunity ,..
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
Post Reply