Set all layers to Hold|Ping-Pong|None|Repeat

Share your custom panels, brushes, papers... (you need to be registered to read posts in this section)
Post Reply
User avatar
cgmodeler
Posts: 113
Joined: 23 Oct 2012, 23:59
Location: Mexico/France/Japan
Contact:

Set all layers to Hold|Ping-Pong|None|Repeat

Post by cgmodeler »

Just did this small script that sets all the layers for the current clip post behavior as none, repeat, ping-pong or hold

It has a little window to write the desired post behavior.

It will store it as a variable for the next session so you can run it quickly

Eg. If I want all layers on the current clipto be HOLD, I write "hold"
layers.jpg
layers.jpg (6.55 KiB) Viewed 9142 times
LayerPostBehavior.tvpx
(55 KiB) Downloaded 522 times

Code: Select all

Param None
tv_readUserString "postBehaviorVar" "postBehavior" Hold
parse result postBehavior
tv_reqstring "Input the mode for all layers none, repeat, ping-pong, hold |"postBehavior""
parse result postBehavior


IF (CMP("Cancel",postBehavior)!=1)
	tv_writeUserString "postBehaviorVar" "postBehavior" postBehavior
END

PARAM none
tv_readUserString "postBehaviorVar" "postBehavior" Hold
parse result postBehavior

layerCount = 0
loop2 = 1
WHILE loop2
tv_LayerGetID layerCount
currentLayerID = result
IF CMP(currentLayerID,"none") == 1
loop2 = 0
ELSE
tv_LayerSet currentLayerID
tv_layerpostbehavior 0 postBehavior
layerCount = LayerCount + 1
END
END
www.cocoalopez.com
vimeo / 156794487
Desktop: TVP Pro 11.0.8 - 64bit Win 7 x64 48GB RAM - GTX1070 - Cintiq 27QHD Driver 6.3.29
User avatar
NathanOtano
Posts: 1208
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Set all layers to Hold|Ping-Pong|None|Repeat

Post by NathanOtano »

Useful 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.
Post Reply