It is currently Thu Apr 25, 2024 8:35 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GAP Apply Layer Mask To Animation
PostPosted: Sun Feb 06, 2011 3:11 pm  (#1) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
Welcome to another GAP tutorial. This will be a two part tutorial. In part 1, we will make the following simple animation:

Image

In part 2, we will apply a layer mask to our animation:

Image

And arrive at this result:

Image

[highlight]Beginning Notes:[/highlight] Layermasking can be used to add complexity to your animations. This tutorial shows a very simple example of a static layermask being applied to an animation to achieve a particular result. Layermaks can also be animated to achieve even more complex animations. The result achieved here can be accomplished other ways also, so this is by no means a unique method.

It does help to have some familiarity with Gimp and GAP. I have tried to make the tutorial as new user friendly as possible. However, without some familiarity, you may not completely understand why certain steps are taken, or why a given result occurs when some method is applied.

[highlight]Let's begin.[/highlight]

Start by opening a new 300x300 image window by selecting:

File | New

from the main Gimp toolbar window (the one with all the tool icons)

Image

After setting up the image dimensions in the New Image window as shown above, press OK.

Next, fill the image with a bluish green color. To follow along exactly with this tutorial, use color:

00ffff

You can do this using the Bucket Fill tool, or by just dragging the color from the Foreground Color showing on the main Gimp toolbar window to the image window.

We need to save the image to a format that GAP can work with. That general format is filename_000001.xcf. I usually use background_000001.xcf (XCF is the native Gimp image format). Save it into a working folder of your choice. It is always best to make a separate working folder to keep all of your work files in one place. I am saving all of my work files into a folder named gap_layermasking_tutorial (you choose the name of the folder/directory you want to add your files to).

I'm going to make a 60 frame animation. There is nothing special about using 60 frames. When you are doing this on your own, you could experiment with using more or less frames. Usually more frames produces a smoother animation, but a larger final file size, while less frames has the advantage of a smaller final file size, but less smooth animation.

We need 60 base frames for our animation. We have one already which is background_000001.xcf. We need 59 more. So from our background_000001.xcf image window select:

Video | Duplicate Frames

Image

As shown in the above image, leave From Frame and To Frame set to 1. You can't use any other value in those boxes since we only have one frame, our background_000001.xcf image. Set N times to 59. This is how many more duplicate frames we want to make for the animation. Then press OK.

You will now have 60 sequentially numbered xcf image files in your working folder.

Open another new 300x300 image just as was done above. Save it as parts.xcf in your working folder.

Set your foreground color to Black
.

Select the Text tool:

Image

The text tool icon (highlighted in red above) looks like an upper case letter T. In the Text tool Dialog window (usually a tabbed window at the bottom of the main Gimp toolbar window), the selected font is URW Bookman L Not-Rotated with a size of 40px. No need to be concerned about any of the other font settings for this tutorial.

Click somewhere inside the parts.xcf window and type the word "Text" (without the quotation marks) in the Gimp Text Editor window that opens:

Image

Then click on Close.

You now have a new Layer added to your parts.xcf image with the word Text somewhere in it:

Image

In order to work more easily with any object using GAP, it is best to center that object in it's image window. Here is a quick method to do that for the Text Layer:

Check your Layers dialog window (should also be a tabbed window at the bottom of your main Gimp toolbar window) to see if the Text Layer is selected. Since you just added it, by default it should be selected. If it is not, just click on the Text Layer in your Layers dialog window to make sure it is selected.

Then in your parts.xcf window select:

Edit | Cut

The Text Layer disappears. Don't worry, it's in a memory buffer.

Next add a New Transparent Layer to your image by either clicking on the New Layer button at the bottom of your Layers dialog window, or by selecting:

Layer | New Layer from your parts.xcf window.

Image

Change the Layer Name from the default New Layer to Text in the window that opens and click on OK.

Then select:

Edit | Paste

The Text Layer reappears and it's centered. It is just a floating selection at this point though, not anchored to any Layer. So select:

Layer | Anchor Layer (or just click on the little anchor icon at the bottom of the Layers dialog window)

The word text is now centered in the image, and the layer has been anchored to the transparent Text Layer that was added previously.

Next let's crop that layer so it just fits to the size of the typed word "Text". Do this by selecting:

Layer | Autocrop Layer

Now return to your background_000001.xcf image and select:

Video | Move Path

Image

In the Move Path window that opens, first make sure Instant Apply is selected (letter A in the image above). For the Source Image/Layer (B) choose parts.xcf/Text by clicking on the drop down window tab if it is not already selected.

([highlight]Note [/highlight]that the Source Image/Layer have numbers after them as shown in the image. Those are numbers that Gimp uses to keep track of objects and are unique to each instance of Gimp, so your numbers may not be the same as the one's in the image above.)

Stepmode (C) needs to be selected as None. For Handle (D) select Center. For the X and Y position values (these represent the position to place the Source Image/Layer on the background_000001.xcf image), set X to be 360 and Y to be 150.

[highlight]Explanation: [/highlight] The Source Image/Layer (which is the Text Layer selected as parts.xcf/Text in the image above) is placed at a value of 150 for Y to be at the horizontal center of the image. (I'm not going to explain this fact. If you understand Cartesian coordinates this hopefully will not be an issue for you.) I have set the X value to be 360 to move the Text Layer beyond the right side of the image. (Try setting X to say 200 and you will see it moved into view. For the purposes of this tutorial and animation, the text begins beyond the right border of the image and moves across the screen disappearing beyond the left border of the image.)

If you use the slider to move the Text Layer, it will only go up to the value of the right border of the background_000001.xcf window. In that case, you can use the little up/down arrows (highlighted in red above) to adjust the value higher. You can also just double-click in the little box where the number is and delete the number in there and type in 360 and then hit the Tab key.

Image

With the Move Path window still open, next click on the Add Point button (F). This adds a second keyframe to the animation and sets the first keyframe with the original values we inserted for our Text Layer, which in this case was just setting it at position X:360 and Y:150. After clicking the Add Point Button, we will set the final position for our animation (G). Set the X value to -60 (minus 60) (G). This moves the Text Layer beyond the left side of the background_000001.xcf image.

Again, if you use the sliders to change the X value, it will stop at a value of 0. Use either the little up/down arrows to the right of the X value or just double-click in the box where the X value is and change it to -60 (again, that is minus 60). We have told GAP the starting and ending values of the Text Layer. The value of GAP is that it will calculate and position all of the in between positions for each frame of the animation for the Text Layer.

Since Undoing with GAP is not trivial, it is always best to Preview your animation prior to clicking the OK button. So click on the Anim Preview button (H):

Image

In the window that opens, select Exact Object on frames as shown above and then click OK. A little multilayered image and a preview window will be created. Watch the preview to see if the animation goes as expected. If so, close the preview window and then delete the little multilayered image that gets created and select Don't Save from the window that opens.

If your animation goes the same as the first animation shown at the beginning of this tutorial, then click OK on your Move Path window and let GAP place the Text Layer into the appropriate position in each of the 60 frames to give the appearance of motion by the text.

Our first animation has been created. Let's save it to a GIF file:

Select:

Video | Frames to Image

Image

Accept the default values here and click OK. A new multilayered image will be created. If you select:

Filters | Animation | Playback from the newly created multilayered image, you will see the animation. We need to try to optimize this file to reduce the final file size before saving it. Select:

Filters | Animation | Optimize (for GIF)

Another new multilayered (and optimized) image gets created. From this new image select:

File | Save As

In the window that opens, type in the name anim_unmasked.gif for the name to save the file and then click the Save button.

The Export File selector window then opens:

Image

Make sure that you select Save as Animation as shown above then click the Export button.

In the next Save window that opens, you can just accept the values there and click on the OK button. Your GIF image has been saved.

Close out the anim_unmasked.gif image window as well as the other multilayered image window that was created from the Frames to Image dialog previously. When asked select Don't Save.

This ends part 1 of the tutorial.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Sun Feb 06, 2011 3:15 pm  (#2) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
Part II Adding a layermask to the Animation.

Return to the parts.xcf image window. Add a New Transparent Layer by selecting:

Layer | New Layer (or by clicking on the New Layer button at the bottom of your Layers dialog window). In the window that opens, name this layer Mask:

Image

Click on the Rectangular Select tool in the main Gimp toolbar window. Then make a rectangular selection in the parts.xcf window around the Text as shown below:

Image

As shown above, the selection is slightly larger and completely includes the word "Text". Make sure that your Mask Layer is selected in your Layers dialog window. Fill that rectangular selection with color White. Then invert the selection by selecting:

Select | Invert

Fill that selection with color Black.

Then from the parts.xcf window select:

Select | None

This will result in a layer that appears to have a white bar surrounded by a black border.

This layer is going to be applied as a layermask to the animation.

[highlight]Explanation: [/highlight] Remember that for layermasks, black areas are made transparent, and White areas are made opaque (visible) for the Layer they are being applied to. We are going to apply this layermask to the Text Layer of each frame of the animation.

This will limit the Text to only being visible when it is positioned in the region of the white square. All other sections of that layer will be rendered transparent by the layermask.

From the background_000001.xcf image select:

Video | Move Path

Image

In the Move Path window, select Instant Apply (A). For the Source Image/Layer select parts.xcf/Mask from the drop-down window if it is not already selected. Again, the numbers after the parts.xcf and Mask in the image above are unique to each instance of Gimp, so your numbers may not be the same. For Stepmode (C) select None. Finally, it is always a good habit to preview the animation before clicking ok, so click on the Anim Preview button (D).

In the window that opens, select Exact Object on Frames and click OK. A little preview will open along with a little multilayered image. If you view the preview, it will just show the Mask layer with no movement. This is correct, since we are just adding the Mask layer to the animation temporarily so that we can use it as a layermask for the Text Layer in each frame of the animation. Once you preview this boring animation, close out the preview, close out the little multilayered image that was created and select Don't Save. Back to the Move Path window, select OK and let GAP add the Mask layer to each frame of the animation.

Then from the background_000001.xcf image select:

Video | Frames Modify

Image

As shown above, a new window opens. Click on the Function button in the upper left hand part of the window:

Image

As shown above, once you click on the Function button, a menu opens. Select Layer Mask and then in the next menu that opens, select Copy layermask from layer above.

Image

Notice that beside the Function button is shown the function we want to apply, namely Copy layermask from layer above. Change the Layer Pattern from a 0 to a 1. We do this because we are going to apply this action to layerstack number 1.

[highlight]Explanation:[/highlight] When GAP adds a new layer to frames of an animation/video using Move Path, it places the new layer at the top of the stack of layers (layerstack). That top layer is called layerstack 0 (zero). Each successive layer below it is named 1, 2, 3, and so on. So, the Text Layer that we had added previously, was at layerstack zero (since GAP by default adds new layers to the top of the layerstack unless told otherwise). But then we added the Mask layer using Move Path, so that made the Mask layer as zero in the layerstack and pushed the Text Layer down by one level to layerstack 1 (one) (which caused the background bluish-green layer to be pushed down to layer 2). We are copying the Mask layer as a layermask for the Textlayer. The Mask layer, at layerstack zero, is one layer above the Textlayer, thus we "Copy layermask from layer above".

Click OK on the window after making the appropriate settings.

We must now delete the Mask layer from the animation. We are not removing it from being a layermask for the Textlayer. The Frames Modify function above already added it as a layermask to the Text Layer for each frame of the animation/video. If we leave it as is, and play the animation, all that we will see is the white bar with black border. We must remove this layer to ultimately reveal the transformed animation that results from adding the layermask.

From the background_000001.xcf window select:

Video | Frames Layer Delete

Image

We applied our Mask layer to all 60 frames, so From Frame is 1 and To Frame is 60. The Mask layer is at Layerstack 0. Click OK and the Mask layer is removed from all 60 frames.

Test the resulting animation by selecting:

Video | Playback from the background_000001.xcf window.

After viewing it close out that window.

Next, we want to Apply the Layermask to the Text Layer for each frame of the animation. Again, GAP automates this. From the background_000001.xcf image select:

Video | Frames Modify

Image

The Frames Modify window opens. Click on the Function button. This opens a menu. Select Layer Mask, then Apply layermask as shown in the image above.

Image

This switches the Function name to be carried out as Apply layermask as shown above. The Layer Pattern is zero this time.

[highlight]Explanation:[/highlight] Layer Pattern is the layerstack position we are applying the function to. The Text Layer moved back up to layerstack position 0 (zero) when we removed the Mask layer from the animation frames.

We are applying this function to all frames of the animation, so our From Frame and To Frame can be left as they are. Click on OK to apply the layermask to the Text Layer for each frame of the animation/video.

If you look at your Layers dialog window for background_000001.xcf, you will see that the Text layer no longer has a layermask associated with it. That is what we expect since the layermask has been applied. If you were making a more complex animation, you might be adding another layermask to the Text Layer, or even an animated layermask, depending on the situation and complexity of your animation.

Let's convert the animation to a GIF format just as on part 1 of this tutorial.

From your background_000001.xcf window select:

Video | Frames to Image

Image

Again, just accept the defaults and click OK.

A new multilayered image will be created. This multilayered image will have 60 layers - one layer for each frame of the animation. Optimize the animation by selecting:

Filters | Animation | Optimize (for GIF)

An optimized multilayered image is created. From that window, select:

File | Save As

In the Save window that opens, save as filename anim_masked.gif and click on the Save button.

Image

As before, make sure you have selected Save as Animation from the Export File window then click the Export button.

In the next window that opens, accept the values there and click OK. Your animation has been saved.

Finally, I added some text and a frame, and added a timing delay to the animation:

Image

So much more that can be done to make the animation even more interesting. Thank you for checking out this tutorial.

:)


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Sun Feb 06, 2011 4:47 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
O My, what an excellent tutorial. I have it all printed ready to try. Thank you ccbarr

_________________
Image


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Sun Feb 06, 2011 10:54 pm  (#4) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Thank you for this tutorial ccbarr. :yes Hopefully I can combine it with Mission Gimpossible to burn that fuse across the image. :mrgreen:

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Sun Feb 06, 2011 11:18 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nice tutorial, i will have to try this soon.
Thanks ccbarr! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Mon Feb 07, 2011 12:47 am  (#6) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
Oregonian wrote:
Thank you for this tutorial ccbarr. Hopefully I can combine it with Mission Gimpossible to burn that fuse across the image.


O,

First, thank YOU for transferring that tutorial over from gimptalk. I know that even transferring tutorials takes some time and effort. Again, thank you for doing so.

:tyspin

This particular tutorial, while it does show the use of layermasking combined with GAP, it is not an animated layermask. Additionally, using a curved path for the animated fuse involves a bit more complexity in creating an animated layermask for that situation.

However, understanding the use of static layermasking applied to animations is a good first step to moving to animated layermasks. One can get very creative with animated layermasks to make a lot of different complex effects.

I don't think that I ever did an animated layermask tutorial. I can start you off with a simple idea though now:

QUICK ANIMATED LAYERMASKING HINTS


Create your background_000001.xcf image, I recommend just using a white background for simplicity sake. Make 59 duplicates of it to have a total of 60 frames.

In another image window (I always call them the parts.xcf windows because they contain the parts that will be used in the animation), the same size dimensions as background_000001.xcf, add a new transparent layer, create a circular selection, centered in the image window, fill it with a chosen color. Then Select | None

In the parts.xcf window, also create a layer completely filled with white and another layer completely filled with black.

Back to the background_000001.xcf image window, use Move Path with Step Mode set to None to just place the circle in the image. No need to provide it with any movement, just add it in.

Once that is done, use Move Path, again with Step Mode of None, to place the white layer from parts.xcf into the background_xxxxxx.xcf frames.

Next, use Move Path, again Step Mode of None, to add the Black layer from parts.xcf into the frames, but you want to move the black layer. Begin with the right side of the black layer being just beyond the left border of the preview window in the Move Path window. You will be adjusting your X position value to do that.

Once positioned, click the Add Point button to add a second point (keyframe) for the animation (GAP always by default creates the first point or keyframe for the beginning of an animation).

Then move your black layer until it completely covers the now showing white layer.

Then click OK (well I always preview my animations first, just providing a shorter set of hints here)

So far, you will see an animation of a black layer moving over a white layer. This is the start of your animated layermask. :)

Next do a Frames Modify from background_000001.xcf.

Press the Function button and select:

Merge Layers | Merge layer(s) clipped to image

Then back at the Frames Modify Dialog window, in the Layer Pattern section, change that from 0 to 0-1

Click OK.

Now, what you have done is merged the black layer moving over the white layer into one animated layer. This animated layer will become the animated layermask.

Next, click Frames Modify again.

This time, click on the Function button and select:

Add alpha channel

In the Layer Pattern section, you want to have all layers with an Alpha Channel so layermasking will work. At this point, you should have three layers in each background_xxxxxx.xcf frame. Since the top is layer 0, you have layers 0 through 2. So for Layer Pattern, you set it to 0-2

Click OK

Go back and again do Frames Modify

Press Function button and select:

Layer Mask | Copy layer mask from layer above

The frames of the black and white animated layer will become the "animated" layer mask for the layer with the filled circle. Therefore the Layer Pattern value will be 1 because you are applying layer 0 as a layermask to layer 1.

Click OK

The "animated" layermask frames have now been added as layermasks to each frame of layerstack #1, the one with the circle.

Now, select:

Video | Frames Layer Delete

You can accept the defaults here, since you will be now removing layerstack 0, which was only made for creating the animated layermask.

Then if you select:

Video | Playback

If all went well, you should see the circle disappear as the "animated" layermask is drawn across the screen.

It won't be a cyclic animation and the circle will flash on fully at the beginning, but you have made and used an animated layermask.

Hoping this helps some.

:)

PS: Much of what I originally learned about animated layer masks I learned from Carol, formerly of carol.gimp.org. While the site is gone, there are pages over at the Wayback Machine at archive.org. I don't know if any of her information on animated layermasks is retained there, but quite a few pages of hers have been archived there over the years if you would like to check them out.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Mon Feb 07, 2011 8:14 am  (#7) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Ah, yes, I remember Carol Gimp. I learned a lot there.

Thank you for adding to the tutorial ccbarr. I was wondering how I could apply the tutorial to that burning wick. This will help. :mrgreen:

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Feb 08, 2011 8:21 am  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Well I finally got to do this well written tutorial. This is my attempt.
Thank you ccbarr.....
Image

_________________
Image


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Wed Feb 09, 2011 1:26 am  (#9) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
ccbarr wrote:
PS: Much of what I originally learned about animated layer masks I learned from Carol, formerly of carol.gimp.org. While the site is gone, there are pages over at the Wayback Machine at archive.org. I don't know if any of her information on animated layermasks is retained there, but quite a few pages of hers have been archived there over the years if you would like to check them out.

Carol has a new site at gimpedimenta.org (-- and I also learned much from her original GAP tutorials).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Wed Feb 09, 2011 8:20 am  (#10) 
Offline
Former Member
User avatar

Joined: Nov 17, 2010
Posts: 618
Location: Rockford, IL
Yes this is gonna be a huge help!


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Wed Feb 09, 2011 8:32 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Welcome back Mike.....

_________________
Image


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Wed Feb 09, 2011 8:38 am  (#12) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
saulgoode wrote:
Carol has a new site at gimpedimenta.org (-- and I also learned much from her original GAP tutorials).
Thank you for that link!

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Wed Feb 09, 2011 8:39 am  (#13) 
Offline
Former Member
User avatar

Joined: Nov 17, 2010
Posts: 618
Location: Rockford, IL
molly wrote:
Welcome back Mike.....

Thanks, I gotta get going in about 10 minutes though, otherwise I'm gonna miss the next bus.

Not being on the computer for a few days has drived me nuts.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Sep 13, 2011 1:19 pm  (#14) 
Offline
GimpChat Member

Joined: Sep 13, 2011
Posts: 77
Cool, I saw this one on Gimptalk.

I am making an animated layermask right now, for a video, and it's annoying because those who have tried to move the layermask outside the image boundaries, know that the layermask applying function in modify layers on the GAP(video) menu relocates the layermask to it's 0x,0y origin, which scrambles the whole animation, so before one applies the layermask to the layer below, one needs to merge layers(if it is just one, it doesn't matter) to clip it in the image, then it works to apply the layermask to the layer below.

_________________
Using Windows Vista 32 bits, 3GBRAM, Intel core 2 Quad Q6600 2.4Ghz, Radeon HD 3450 graphics card, Lambda Lexicon USB audio interface.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Sep 13, 2011 1:32 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
gasto wrote:
... those who have tried to move the layermask outside the image boundaries, know that the layermask applying function in modify layers on the GAP(video) menu relocates the layermask to it's 0x,0y origin, which scrambles the whole animation,


If I understand you correctly, another solution would be to execute "Frames Modify->Function:Resize layer to image size" before applying the mask.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Sep 13, 2011 2:26 pm  (#16) 
Offline
GimpChat Member

Joined: Sep 13, 2011
Posts: 77
Yes, I meant clipping the intended layermask to the image beforehand.

_________________
Using Windows Vista 32 bits, 3GBRAM, Intel core 2 Quad Q6600 2.4Ghz, Radeon HD 3450 graphics card, Lambda Lexicon USB audio interface.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Sep 13, 2011 3:24 pm  (#17) 
Offline
GimpChat Member

Joined: Sep 13, 2011
Posts: 77
I tried your method of : video->frames modify->resize layer to image size, and worked marvelously.

By the way, the obnoxious latter method of : video->frames modify->merge layers->merge layer(s) clipped to image , did not work, it confuses me that it has two blank fields : Merged Layer Name and Layer Pattern , I tried to merge the first and last layers by specifying the first layer's name at the Merged Layer Name blank field, and the last layer's stack position on Layer Pattern, to no avail.

I wonder how it works...

_________________
Using Windows Vista 32 bits, 3GBRAM, Intel core 2 Quad Q6600 2.4Ghz, Radeon HD 3450 graphics card, Lambda Lexicon USB audio interface.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Sep 13, 2011 3:49 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
gasto wrote:
I tried your method of : video->frames modify->resize layer to image size, and worked marvelously.

Glad to hear it. Using GAP is sometimes a bit of a jigsaw puzzle; you can't always directly attack the problems you are trying to solve. For example, you don't have access to "non-plugin" functions and so you can't do things such as grow a selection, however, you can Value Propagate; you can't do a Colors->Invert but you can run the 'wr-color-levels' plug-in and specify a minimum output value of "255" and a maximum output value of "0" (i.e., invert the output).

gasto wrote:
By the way, the obnoxious latter method of : video->frames modify->merge layers->merge layer(s) clipped to image , did not work, it confuses me that it has two blank fields : Merged Layer Name and Layer Pattern

The first field is just the name that will be assigned to the resulting, merged layer. The layers to be merged all need to be specified in the second field (matching the appropriate criteria chosen with the radio buttons).

And for what it's worth, I was the person who originally added the "Resize layers to image size" option precisely because of the problem that merging layers was so "obnoxious".

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Tue Sep 13, 2011 5:12 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
My two cents, haha.


Attachments:
playing around.gif
playing around.gif [ 476.7 KiB | Viewed 2363 times ]

_________________
I refuse to be confused, but am often confused at this refusal.
Top
 Post subject: Re: GAP Apply Layer Mask To Animation
PostPosted: Sat Sep 17, 2011 9:51 am  (#20) 
Offline
GimpChat Member

Joined: Sep 13, 2011
Posts: 77
saulgoode wrote:
And for what it's worth, I was the person who originally added the "Resize layers to image size" option precisely because of the problem that merging layers was so "obnoxious".


Well thanks for the huge help.

I am now having trouble with video->frames modify->layer stack position->lower layer.

When I choose two layers to lower, say: 1,2 , very strangely GAP seems to select the first one and lower it, then the first one again an lower it. The only logical reason I find that this happens is because it recognizes no change in the layer stack position from the beginning, hence the second positioned layer remains as the second even though it is located at [1] stack position.

I tried 1,3 and worked perfectly as expected, which induces me to think that in the second call of that function(lower layer) the layer stack position isn't updated.

Where can I see the source code of GAP?

_________________
Using Windows Vista 32 bits, 3GBRAM, Intel core 2 Quad Q6600 2.4Ghz, Radeon HD 3450 graphics card, Lambda Lexicon USB audio interface.


Top
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL selection modification filter to apply on layer mask

8

No new posts Add layer mask hides the entire layer

3

No new posts Attachment(s) Apply Selection to Layer with LIVE PREVIEW

6

No new posts Attachment(s) GEGL Jelly - Apply on Duplicate Layer above and use eraser

3

No new posts Create Layer Mask From

8



* Login  



Powered by phpBB3 © phpBB Group