scale an image inside a mask Pretty new to after effects. 

I was wondering if anyone could tell me how to scale an image contained inside a mask.

Similar to photoshop. In Photoshop you create a mask and if you want to scale the image you simply unlink the mask and scale your image.

Can this be done in after effects?

This is what I have going on.


Video playing in background
Created a new image layer in the bottom right position of the video to show a more in-depth example of what the person in the video is talking about.
Want to add a scale effect to the image layer contained in the mask


When I try and scale the image it scales the mask. I only want the image to scale inside the mask.

Any help would be appreciated.
After some serious Google time I found a solution.

Here is the link, but just in case is gets removed this is what they said to do.

You want to use a track matte.

Create a mask on a solid layer that lies on top of the layer you want to cut out. Then click on the TrkMatte dropdown menu on your footage layer, select Alpha Matte.

Here's the layer order for you:


Masked solid
Your footage / image - Apply Track matte and apply Alpha Matte
Background (if used)


Now you can move your footage layer around and the mask won't move. 

This worked like a charm.

If anyone has any better solutions, please let me know.