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: 104
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 1788 times
LayerPostBehavior.tvpx
(55 KiB) Downloaded 35 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
Post Reply