Key:Layer:Exposure:DeleteInstanceHead via George script Topic is solved

A forum dedicated to George scripting questions
Post Reply
MaciejGliwa
Posts: 7
Joined: 22 Mar 2018, 07:09

Key:Layer:Exposure:DeleteInstanceHead via George script

Post by MaciejGliwa »

Hello,

I am trying to write a script in George which would remove "keyframes". I can do that via the Key-Layer-Exposure-Delete Instance Head command in TVPaint. Is there any George command that would allow me to implement that functionality inside of the script?

Thanks!

Maciej
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Key:Layer:Exposure:DeleteInstanceHead via George script

Post by Svengali »

Interesting puzzle. I'd like to see what other script solutions there might be... :)

Here's a script fragment that works almost like Key:Layer:Exposure:DeleteInstanceHead, except it won't work the same for the first image of the layer:

tv_LayerCurrentID
LayerID = result
tv_LayerGetImage
Frame = result
PrevFrame = Frame - 1
NextFrame = Frame + 1
tv_LayerImage PrevFrame
tv_ImagePush
tv_LayerImage Frame
tv_ImagePop
tv_LayerReComputeExposure LayerID Frame NextFrame // (updated a second time: to limit ReComputeExposure to current frame and next frame)

It copies the frame preceding the current frame, to the current frame, then uses tv_LayerReComputeExposure to turn the original frame into an exposure of the previous head frame.

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
MaciejGliwa
Posts: 7
Joined: 22 Mar 2018, 07:09

Re: Key:Layer:Exposure:DeleteInstanceHead via George script

Post by MaciejGliwa »

Thank you so much for the reply and code. I will try it out. Really appreciate the help!
MaciejGliwa
Posts: 7
Joined: 22 Mar 2018, 07:09

Re: Key:Layer:Exposure:DeleteInstanceHead via George script

Post by MaciejGliwa »

Works great! Thanks again!
Post Reply