Random frames in AnimBrush

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Post Reply
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Random frames in AnimBrush

Post by Svengali »

After all this time using TVPaint, I was shocked and surprised to find that stamping random frames from the current AnimBrush, in the same X,Y spot, on ALL the frames of a given layer apparently CANNOT be done!

In the past, I've noticed when drawing a stroke using an AnimBrush whose "Anim" setting is RANDOM, the generation of randomness seems based on the changing X,Y position of the AnimBrush, NOT on some per-stamp-randomly-generated value in the range of the animbrush framecount. It's especially noticeable when moving the cursor over, but not in contact with the surface.

So, today I tried to generate a randomly stamped sequence at the SAME X,Y location from a string of random animbrush frames (with its "Anim" setting to RANDOM).

I start in the usual way by stamping once on the first frame, @ the X,Y location I want RANDOM frames stamped, for the whole layer. Next, I undo (Ctrl-Z) the single stamp on the first frame of the layer, select all the frames in the layer, then press ENTER.

What I EXPECTED: randomly chosen, different frames from the AnimBrush, one stamped on each frame in the layer at the same location.

What I GOT: the stamp on frame one of the layer is some random frame of the AnimBrush. All subsequent stamped frames (from 2, on) are one of the other AnimBrush frames which duplicates itself to the end of the layer.

GEORGE to the rescue: Here is a button that actually gives you random frames (from the current AnimBrush) stamped at the chosen X,Y location. Works exactly as I wanted, in fact it also guarantees that you will never have the same random frame appear twice in succession.
To Use:
1. Choose an AnimBrush with 3 or more frames (you will be warned it your current brush is 1 or 2 frames.)
2. Click the button and you will see a prompt asking you to click your cursor on the screen where you want the random AnimBrush frames to be stamped on all the frames of the layer.
3. Done, it happens in an instant. If you aren't satisfied, simply undo (Control-Z) to try again.
RandomStampAnimbrush.jpg
RandomStampAnimbrush.jpg (5.68 KiB) Viewed 15792 times
RandomStampAll.tvpx
(99.5 KiB) Downloaded 1128 times
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
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Random frames in AnimBrush

Post by slowtiger »

I've noticed this. BUT: if you just step forward a frame, don't move the mouse, and click into each frame, RANDOM works. It also should work to advance one frame, hit re-apply, advance, etc.

I agree it should work with any range of frames selected as well.
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
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Random frames in AnimBrush

Post by Svengali »

Thanks Tiger, I never tried that: place stamp, advance frame, press enter - repeat. Works quite well (producing random frames) and I'll probably use it in certain cases. Apparently Random&Hold lets you start deliberately with a chosen frame, then random frames are generated beyond that. I'll have to check out the other "Anim" settings for more possibilities. :D

As often happens with solving a problem, the basic script has set me off on a whole series of scripted variations that might offer easy access to effects I've thought about for a long while but never saw how they could be scripted.

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
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Random frames in AnimBrush

Post by NathanOtano »

Awesome! 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.
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Random frames in AnimBrush

Post by slowtiger »

I should add that making this work as expected (using a brush with RANDOM over a selected range of frames by re-apply) would make it so much easier to create "moving holds" or "boiling lines".
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
Post Reply