animated paper

Please use this part to report bugs & errors, ask questions & "How to..."
User avatar
hilere
Posts: 144
Joined: 17 May 2010, 12:39

animated paper

Post by hilere »

When using a paper structure over different frames the structure stays always on the same place. So if you paint on the same spot several times over different frames one sees reappearing the same structure. The spectator starts recognising the paper structure as a non moving part within your animation. (hope my explanation is understandable) So I was wondering if there is an option to have the paper switch for every frame to another one. So i.e. one could create about 6 different but similar papers and when you move to the next instance the paper switches to the next in line, or randomised. This to mimic as if you are working on real paper, you would take a new paper for every new drawing too.
I could do this manually of course, but maybe there is a way create an animated paper?
User avatar
Byron
Posts: 98
Joined: 16 Feb 2010, 18:45

Re: animated paper

Post by Byron »

That's a coincidence - I was wondering exactly the same thing just the other day.
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: animated paper

Post by Hervé »

Here is a little script to set the paper offset.
Attachments
PaperOffset.zip
(10.31 KiB) Downloaded 1007 times
Hervé ADAM, TVPaint Team
User avatar
hilere
Posts: 144
Joined: 17 May 2010, 12:39

Re: animated paper

Post by hilere »

Thanks Hervé for jumping on it so fast.
I tried the script, and it does what it's naming promises....but in the workflow it is faster and simpler to just manually pick another paper every time. Rotating the paper at randum every time you jump to another instance would be closer to a solution. But hear me talking here...I'm not a programmer, and I don't have a clue of the implications of what I'm asking here. I don't know how important this feature is for others and how much of your valuable time is to be spent on this.
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: animated paper

Post by slowtiger »

I've suggested this a long time ago already ...
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
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: animated paper

Post by Hervé »

New version with a random offset command.
Attachments
PaperOffset.zip
(13.8 KiB) Downloaded 1097 times
Hervé ADAM, TVPaint Team
User avatar
Byron
Posts: 98
Joined: 16 Feb 2010, 18:45

Re: animated paper

Post by Byron »

:D :D :D
User avatar
hilere
Posts: 144
Joined: 17 May 2010, 12:39

Re: animated paper

Post by hilere »

One big happy smile from me too! not yet 100% automatic but close enough for an easy workflow. THANKS!!!
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: animated paper

Post by Svengali »

Here's another way to animate the paper texture...

In the AnimatedPaper.tvpx file you'll find a custom panel called Animated Paper containing two buttons (they both have the same icon). One button is called StepPaperPrevious and the other is called StepPaperNext.

If you look at the two scripts assigned to the buttons you will notice the following bit of code which you can tweak yourself to vary the result:

Code: Select all

tv_PaperInfo
parse result d ZHardness d zInvert d zSize d zAngle d zoffsetX d zoffsetY d zFlipX d zFlipY d zActive d zName

zoffsetX = RND(256)
zoffsetY = RND(256)
zFlipX = RND(2)
zFlipY = RND(2)

tv_Paper Hardness ZHardness Invert zInvert Size zSize Angle zAngle OffsetX zoffsetX OffsetY zoffsetY FlipX zFlipX FlipY zFlipY
This randomizes the X offset, the Y offset, the FlipX and the FlipY values so the paper texture for each frame is unique... yet all derive from the currently selected paper.

To use the buttons, I assign the StepPaperPrevious button to the ShortCutKey = comma and the StepNextButton to the ShortCutKey = period because these two keys also are the "<" and the ">" keys - making it easy to remember they move to the previous or next frame.

This way, all you need to do is press the "<" or the ">" keys to move to a different frame and at the same time change to a new randomized paper texture... pressing NO custom buttons.

Sven
Attachments
AnimatedPaper.tvpx
(109 KiB) Downloaded 1101 times
User avatar
hilere
Posts: 144
Joined: 17 May 2010, 12:39

Re: animated paper

Post by hilere »

WHO'S MY HERO! WHO'S MY HERO! WHO'S MY HERO!
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: animated paper

Post by ZigOtto »

Svengali wrote:Here's another way to animate the paper texture...
I had done something similar (but less elabotate),
one little script called PaperRandomOffset.grg, working only on the X and Y values, and a little custom panel with navigator buttons (next instance, prev instance, next frame, prev frame, add New Instance after, add New Instance before), buttons working with the same shortkeys as usual, but adding a paper's random offset.
I had reserved a Room (Room 4) for this set of shortkeys, so when I was on a drawing session (and when I needed this paper offset along the animation), I used this Room 4, otherwise, I used my classic Room 1, (navigator shortkeys without moving paper).

another alternative way (but requiring more work) is to create an animlayer where you animate (random shake) the paper,
after a scancleaner_fx, you turn on the stencil gadget of this animated paper layer, hide it, then going back to your first animlayer,
you can draw now with the paper structure, each frame with a different position of the paper.
User avatar
chatbraque
Posts: 335
Joined: 06 Jun 2009, 09:36

Re: animated paper

Post by chatbraque »

Svengali wrote:This way, all you need to do is press the "<" or the ">" keys to move to a different frame and at the same time change to a new randomized paper texture... pressing NO custom buttons.
Thx Great ! … but… if you come back ( for modifications) the paper is'nt the same any more ?
ZigOtto wrote: another alternative way (but requiring more work) is to create an animlayer where you animate (random shake) the paper,
after a scancleaner_fx, you turn on the stencil gadget of this animated paper layer, hide it, then going back to your first animlayer,
you can draw now with the paper structure, each frame with a different position of the paper.
I'm trying this one too… great tips here… Thx all :D
User avatar
Byron
Posts: 98
Joined: 16 Feb 2010, 18:45

Re: animated paper

Post by Byron »

Yes - great tips, and scripts!

I've used Herve's script combined with ZigOtto's tip about using a separate room. So now, I have a key map where the previous/next instance/bookmark keys also trigger the random paper offset script.

Sorted.

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

Re: animated paper

Post by Svengali »

chatbraque wrote:Thx Great ! … but… if you come back ( for modifications) the paper is'nt the same any more ?
You are right, returning to a previous frame will result in a different, random paper position than first used. I couldn't think of a way to store the random paper shifts for EACH frame until I saw that Hervé hints at a way to do that in this link!

So, the offsetX and offsetY and flipX and flipY paper information for each frame could be embedded as R, G and B colorindex values for each frame's Imagemark. That way, inserting or deleting any frame would not affect other, already defined positioning of the paper in all the other frames. Thus, returning to any previous frame would permit the same previous paper position for that frame to be re-established.

When I get time I'll try to write an animated paper routine that uses this info...
User avatar
chatbraque
Posts: 335
Joined: 06 Jun 2009, 09:36

Re: animated paper

Post by chatbraque »

Svengali wrote: When I get time I'll try to write an animated paper routine that uses this info...
Nice of you… it will be a great tool for sure…
I'm playing with zigotto's "alternative way"… a bit "crafty" but it works allwright !
… and these are things which I manage to understand :D

Thxagain, to all of you, for kindly sharing your knowledges :wink:
Post Reply