stretch layer length
- condepablo
- Posts: 60
- Joined: 21 Nov 2019, 01:32
stretch layer length
It would be really usefull to have a button to expand or strech the layer duration on selected layers, so you can easily make all layers end in the same frame.
I search in the forum but I didnt find anything about this.
I search in the forum but I didnt find anything about this.
- NathanOtano
- Posts: 1208
- Joined: 01 Apr 2014, 07:07
- Location: Biarritz, France
- Contact:
Re: stretch layer length
You can have a look at my storyboard scripts where there is scripts to expend layer to clip length : viewtopic.php?f=11&t=10376
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
- condepablo
- Posts: 60
- Joined: 21 Nov 2019, 01:32
Re: stretch layer length
thanks! But I have tried and my tvpaint crashes everytime. I have standar edition (11.5) maybe only works on pro?NathanOtano wrote: ↑14 Oct 2021, 12:20 You can have a look at my storyboard scripts where there is scripts to expend layer to clip length : viewtopic.php?f=11&t=10376
and I couldnt find which one would work with what I need
- NathanOtano
- Posts: 1208
- Joined: 01 Apr 2014, 07:07
- Location: Biarritz, France
- Contact:
Re: stretch layer length
Ah maybe, some functions are grabing clip length but I don't know if it should still work. Sorry
You have to use "Layer Stretch to Marks" and if you have no marks, "Marks set to clip extremes" or "Marks set to layer extremes" or to set a Marck yourself before use I think
Without a mark you can't tell where it should end. Maybe it's why you have a crash?
You have to use "Layer Stretch to Marks" and if you have no marks, "Marks set to clip extremes" or "Marks set to layer extremes" or to set a Marck yourself before use I think
Without a mark you can't tell where it should end. Maybe it's why you have a crash?
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
- condepablo
- Posts: 60
- Joined: 21 Nov 2019, 01:32
Re: stretch layer length
the "Layer strech to mark" works. the other ones crash my tvp
i was testing the "Layer strech to mark", and it doesnt work exactly as I need. because it change the begining of my layers. im only want to define the end of them
i was testing the "Layer strech to mark", and it doesnt work exactly as I need. because it change the begining of my layers. im only want to define the end of them
Re: stretch layer length
Try this Script: "ExtendAllLayers". It automatically selects length of the longest layer with an option to make ALL OTHER LAYERS the same length.
You can also choose a new, longer length FOR ALL LAYERS including the current longest layer by adjusting the slider to the new length.
If you want to restore the newly extended, new lengths for ALL LAYERS to their original lengths, you can do so with an immediate UNDO.
Post any problem here...
sven
EDIT: Notice, I found a bug in the original script, corrected it and reposted the update. Originally, I intended to EXCLUDE any layers which were INACTIVE from being extended. The original version did not exclude inactive layers...
The new version, uploaded October 17, 2021 now works as intended and will EXCLUDE any layers which are INACTIVE from being extended. Sorry for that.
You can also choose a new, longer length FOR ALL LAYERS including the current longest layer by adjusting the slider to the new length.
If you want to restore the newly extended, new lengths for ALL LAYERS to their original lengths, you can do so with an immediate UNDO.
Post any problem here...
sven
EDIT: Notice, I found a bug in the original script, corrected it and reposted the update. Originally, I intended to EXCLUDE any layers which were INACTIVE from being extended. The original version did not exclude inactive layers...
The new version, uploaded October 17, 2021 now works as intended and will EXCLUDE any layers which are INACTIVE from being extended. Sorry for that.
- Attachments
-
- ExtendAllLayers.tvpx
- (96 KiB) Downloaded 675 times
Last edited by Svengali on 17 Oct 2021, 06:07, edited 3 times in total.
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
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
- NathanOtano
- Posts: 1208
- Joined: 01 Apr 2014, 07:07
- Location: Biarritz, France
- Contact:
Re: stretch layer length
neat script sven thanks
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
- condepablo
- Posts: 60
- Joined: 21 Nov 2019, 01:32
Re: stretch layer length
Thanks Svengali!
I was testing the script. but I have some observation that could make this one step foward!:
1-apply to selected layers instead on all (or at least preserve the locked ones)
2-use as final frame the last frame on selected layer
3-add the posibility to shrink too
example attached
I was testing the script. but I have some observation that could make this one step foward!:
1-apply to selected layers instead on all (or at least preserve the locked ones)
2-use as final frame the last frame on selected layer
3-add the posibility to shrink too
example attached
- Attachments
-
- Captura.PNG (58.91 KiB) Viewed 12423 times
Re: stretch layer length
I think the script should stand as first posted.
I updated the original script which now works as intended. It will IGNORE any layers which are set to INACTIVE so that they WON'T BE EXTENDED.
On the otherhand, uniformly shortening multiple layers' lengths presents a scripting nightmare in part because existing frames could be unintentionally destroyed (something I try to avoid in all my scripts).
Also during testing I discovered that the start frame for any active layer doesn't have to be 1... it is only the final frame for each and all the layers that are stretched to the chosen layer length... the original intent of the script.
BTW, I neglected to mention that the maximum length that layers may be stretched to in this script is 1,000 frames...
sven
I updated the original script which now works as intended. It will IGNORE any layers which are set to INACTIVE so that they WON'T BE EXTENDED.
On the otherhand, uniformly shortening multiple layers' lengths presents a scripting nightmare in part because existing frames could be unintentionally destroyed (something I try to avoid in all my scripts).
Also during testing I discovered that the start frame for any active layer doesn't have to be 1... it is only the final frame for each and all the layers that are stretched to the chosen layer length... the original intent of the script.
BTW, I neglected to mention that the maximum length that layers may be stretched to in this script is 1,000 frames...
sven
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
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
- condepablo
- Posts: 60
- Joined: 21 Nov 2019, 01:32
Re: stretch layer length
I´m not saying you have to do this. I'm only commented my idea of some tool that would be really useful. your script it's really useful though.
thanks!
p.d: the link to download the upgrade version is the same?
thanks!
p.d: the link to download the upgrade version is the same?
Re: stretch layer length
Click on the original link which now downloads the tvpx for the fixed version... download and try it...condepablo wrote: ↑17 Oct 2021, 21:38 I´m not saying you have to do this. I'm only commented my idea of some tool that would be really useful. your script it's really useful though.
thanks!
p.d: the link to download the upgrade version is the same?
The "ExtendAllLayers" script was one I created several years ago and included a lot of other custom functionality for my own purposes, so I stripped it down and improved it to ignore INACTIVE LAYERS, similar to what you suggested. I Hope other TVPaint users find ExtendAllLayers helpful too.
sven
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
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
- NathanOtano
- Posts: 1208
- Joined: 01 Apr 2014, 07:07
- Location: Biarritz, France
- Contact:
Re: stretch layer length
I agree that scripting this on my storyboard panel was a pain in the neck... Those involve a lot of trial and error and mutilple specific cases : when trying to satisfy and end and a beginning you need to do lot's of checks and maths. That why I put mark ins and out and the shrink to them, it's a bit easier to manage when storyboarding (but not much more). Also when changing the timing of a shot in the project view, it puts mark in and out so that's why I tend to systematically use it
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
- condepablo
- Posts: 60
- Joined: 21 Nov 2019, 01:32
Re: stretch layer length
I understand.
unfortunately for me, I have no idea about george script. so thats why Im very limitated with my custom creations on tvp. the sames happens to me on after effects
unfortunately for me, I have no idea about george script. so thats why Im very limitated with my custom creations on tvp. the sames happens to me on after effects