Hello everyone
This is my first post on the forum but I have used it a lot to help me learn TVPaint over the last few months, so thank you! I have searched for the answer to this on the forum but I couldn't find anything. If the topic already exists, I would really appreciate a link so I can read up.
I am wondering if there is a way to copy a layer's structure on to an existing layer and deleting all frames that do not hit an instance head.
I am running some of my layers through a process in a different program to achieve an effect. The other program does not have the exposure information so when I import the layer back into TVPaint, the layer is on 1s.
Here is a visual of the original layer in red, and the output in blue:
The extra frames are unnecessary and are starting to cause problems. Is there a way to delete out the unneeded frames in the blue layer other than manually adjusting the layer?
I have quite a lot of material to process this way so doing it manually is not really an option I want to use. Any insight on this would be really helpful.
Thank you!
Copying layer structure on to an existing layer
Re: Copying layer structure on to an existing layer
Look up "recompute instances" in the manual.
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
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
Re: Copying layer structure on to an existing layer
Thank you for your quick response.
I tried using Recompute Exposures but no matter what number I put in as a threshold it either did nothing or deleted every frame after the first.
The outside process seems to be making some imperceptible (to me) changes on every frame so TVPaint counts them all as different, and for some reason the Recompute Exposures does not pick up on the actual changes in the animation.
Re: Copying layer structure on to an existing layer
In that case maybe a script could help - something like "take structure from layer X and apply it to layer Y" - but that's outside my abilities.
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
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
Re: Copying layer structure on to an existing layer
You're probably right, I suspected that might be the case anyway. I have someone who can script for me so I'll be able to figure something out, but I just wanted to make sure there wasn't something obvious I was missing (I was, it just didn't solve this particular problem)
Thank you so much for the responses and for teaching me about a feature I didn't know about!
Re: Copying layer structure on to an existing layer
Hey, this might do the trick.
How to use:
Open the Spoiler window, SelectAll and copy the script.
Create a new action button and embed (paste) the script.
For the original layer of the project:
* select the original layer.
* click button and choose menu option 1 (which encodes the head frames/exposure frames information into a string and stores it).
For the processed layer of project:
* process the layer externally using your other software, then reimport it.
* select the imported layer.
* click button and choose menu option 2(which reads the encoded head frame/exposure frame info and applies it to the processed (current) layer.
* result, same heads/exposures as the original layer.
How it works:
* menu option one encodes a string where a 1 represents each head and a 0 represents each exposure.
* menu option two reads the string back.
* If it finds a 1, it pushes the appropriate head frame to an image stack.
* If it finds a 0, it pops a copy of the head frame image from stack to the appropriate exposure frame.
* finally, it processes the layer using the LayerRecomputeExposure operation, turning each duplicate frame into an exposure.
Sven
Spoiler : :
Open the Spoiler window, SelectAll and copy the script.
Create a new action button and embed (paste) the script.
For the original layer of the project:
* select the original layer.
* click button and choose menu option 1 (which encodes the head frames/exposure frames information into a string and stores it).
For the processed layer of project:
* process the layer externally using your other software, then reimport it.
* select the imported layer.
* click button and choose menu option 2(which reads the encoded head frame/exposure frame info and applies it to the processed (current) layer.
* result, same heads/exposures as the original layer.
How it works:
* menu option one encodes a string where a 1 represents each head and a 0 represents each exposure.
* menu option two reads the string back.
* If it finds a 1, it pushes the appropriate head frame to an image stack.
* If it finds a 0, it pops a copy of the head frame image from stack to the appropriate exposure frame.
* finally, it processes the layer using the LayerRecomputeExposure operation, turning each duplicate frame into an exposure.
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