animated paper
animated paper
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?
I could do this manually of course, but maybe there is a way create an animated paper?
Re: animated paper
That's a coincidence - I was wondering exactly the same thing just the other day.
Re: animated paper
Here is a little script to set the paper offset.
- Attachments
-
- PaperOffset.zip
- (10.31 KiB) Downloaded 1007 times
Hervé ADAM, TVPaint Team
Re: animated paper
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.
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
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
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
Re: animated paper
New version with a random offset command.
- Attachments
-
- PaperOffset.zip
- (13.8 KiB) Downloaded 1097 times
Hervé ADAM, TVPaint Team
Re: animated paper
One big happy smile from me too! not yet 100% automatic but close enough for an easy workflow. THANKS!!!
Re: animated paper
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:
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
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
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
Re: animated paper
WHO'S MY HERO! WHO'S MY HERO! WHO'S MY HERO!
Re: animated paper
I had done something similar (but less elabotate),Svengali wrote:Here's another way to animate the paper texture...
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.
- chatbraque
- Posts: 335
- Joined: 06 Jun 2009, 09:36
Re: animated paper
Thx Great ! … but… if you come back ( for modifications) the paper is'nt the same any more ?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.
I'm trying this one too… great tips here… Thx allZigOtto 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.
Re: animated paper
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.
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
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!chatbraque wrote:Thx Great ! … but… if you come back ( for modifications) the paper is'nt the same any more ?
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...
- chatbraque
- Posts: 335
- Joined: 06 Jun 2009, 09:36
Re: animated paper
Nice of you… it will be a great tool for sure…Svengali wrote: When I get time I'll try to write an animated paper routine that uses this info...
I'm playing with zigotto's "alternative way"… a bit "crafty" but it works allwright !
… and these are things which I manage to understand
Thxagain, to all of you, for kindly sharing your knowledges