Page 1 of 1

Cutting a hole in a raster image?

Posted: Mon Jul 06, 2015 10:53 pm
by uncle808us
How would I go about cutting a hole in an imported jpg or png image? Can it be done somehow like you cut a hole in a shape? Thanks.

Re: Cutting a hole in a raster image?

Posted: Mon Jul 06, 2015 11:48 pm
by Víctor Paredes
You can do it with a mask.

Re: Cutting a hole in a raster image?

Posted: Tue Jul 07, 2015 1:02 am
by uncle808us
Víctor Paredes wrote:You can do it with a mask.
I have trouble with masks and final rendering to movie, any other way?

Re: Cutting a hole in a raster image?

Posted: Tue Jul 07, 2015 2:16 am
by sbtamu
You will have to use masking to do this or us a photo editor and erase the hole and save as png and import that to AS.

The masking will be real easy for this. Create a group and put the image in it an a vector layer. Set the group to hide all. Set the vector layer to "add to mask but keep invisible. " Now create a square shape that covers the entire canvas with a circle inside. The circle should not be filled.

Re: Cutting a hole in a raster image?

Posted: Tue Jul 07, 2015 2:28 am
by Víctor Paredes
If you have problems with masking, try asking here for help. As Sbtamu described, create this kind of masking is very easy and shouldn't be any visualization problem.
Anyway, here is an alternative way to do a hole on an image:
- Create a rectangle with no fill or stroke. Now, inside it, create a circle with no fill/stroke.
- Select the points of both and create a fill from them.
- Select the created shape and go to Style window - Effect - Image texture
- Select the image you want and press ok
- Now move the texture handle until you get the desired image size
- You can move the points for more exact result

PD: I haven't tested this specifically, but it should work.

Re: Cutting a hole in a raster image?

Posted: Tue Jul 07, 2015 3:15 am
by uncle808us
I did the masking and it worked (rendered) OK. I followed this video:https://www.youtube.com/watch?v=VjdB0AiVTac
Thanks Víctor Paredes I will try your way as well and report back.
@sbtamu: Thank you too this may be what I want to do at least another alternative.
Thanks all.

Re: Cutting a hole in a raster image?

Posted: Tue Jul 07, 2015 4:45 am
by uncle808us
I think the way with the best control is going to be the masking. I just have to get a grip on using masks.
Thanks again everyone.