Two little scripts someone might find useful:
1. TweenLoop: Lets you expand or contract the framecount for the current layer with automatic interpolation (including between the last and first frames). Clicking the Icon brings up a slider defaulting to the current frame-count. Set slider to any new value between 1 and 200 and press OK. That's it. Several undo clicks are needed to retrieve the original frames.
2. Outline Cutbrush: lets you apply an outline (0 - 6 pixels wide) to the current cutbrush or animbrush. The outline will be in the currently selected color. Change current color and re-press the icon for new outline color. Set line-width to zero to delete the outline. One interesting thing I've noticed is that the outline assumes the transparency level(s) of the cutbrush image.
This is my first .tvpx post but I think it will install ok. Let me know if there's a problem.
Sven
TweenLoop and Outline Cutbrush scripts
Re: TweenLoop and Outline Cutbrush scripts
Hi Svengali,
Thank you for sharing your scripts. They work fine here.
Thank you for sharing your scripts. They work fine here.
Ex TVPaint Team
Re: TweenLoop and Outline Cutbrush scripts
hi Sven,Svengali wrote:...
1. TweenLoop: ... Several undo clicks are needed to retrieve the original frames.
to get rid of the needed multi-undo thing, you may add a tv_undoopenstack command before to copy/paste-append the first frame to the layer's end,
and a tv_undoclosestack "tweenloop" command at the end of the script.
Or alternatively, insert these 2 commands in the Action list of your custom button, (see pict).
like that, a single Undo click will return to the original layer's state.
- Attachments
-
- TweenLoopImprovement.png (7.99 KiB) Viewed 1538 times
Re: TweenLoop and Outline Cutbrush scripts
Nice tip, thanks Zig. I tried it in the script and, yes, only one undo is now necessary.ZigOtto wrote:to get rid of the needed multi-undo thing, you may add a tv_undoopenstack command before to copy/paste-append the first frame to the layer's end,
and a tv_undoclosestack "tweenloop" command at the end of the script.
Or alternatively, insert these 2 commands in the Action list of your custom button, (see pict).
like that, a single Undo click will return to the original layer's state.
But what are these two commands doing to the undo stack? Are all of the script's actions saved in the stack as one undo?
Sven