Page 1 of 2

animated paper

Posted: 20 Sep 2010, 00:24
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?

Re: animated paper

Posted: 20 Sep 2010, 08:37
by Byron
That's a coincidence - I was wondering exactly the same thing just the other day.

Re: animated paper

Posted: 20 Sep 2010, 08:40
by Hervé
Here is a little script to set the paper offset.

Re: animated paper

Posted: 20 Sep 2010, 09:19
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.

Re: animated paper

Posted: 20 Sep 2010, 09:47
by slowtiger
I've suggested this a long time ago already ...

Re: animated paper

Posted: 20 Sep 2010, 09:55
by Hervé
New version with a random offset command.

Re: animated paper

Posted: 20 Sep 2010, 10:21
by Byron
:D :D :D

Re: animated paper

Posted: 20 Sep 2010, 11:14
by hilere
One big happy smile from me too! not yet 100% automatic but close enough for an easy workflow. THANKS!!!

Re: animated paper

Posted: 20 Sep 2010, 18:39
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

Re: animated paper

Posted: 20 Sep 2010, 22:46
by hilere
WHO'S MY HERO! WHO'S MY HERO! WHO'S MY HERO!

Re: animated paper

Posted: 20 Sep 2010, 23:47
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.

Re: animated paper

Posted: 21 Sep 2010, 09:06
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

Re: animated paper

Posted: 21 Sep 2010, 10:02
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.

:)

Re: animated paper

Posted: 22 Sep 2010, 19:23
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...

Re: animated paper

Posted: 22 Sep 2010, 19:42
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: