unable to re-use/instance mask images

Hi. I am not sure whether this is by design but I have a group of images that can be used as masks. I found some strange behaviour where some would just appear as small squares inside the image instead of the mask. After days of scratching my head I found out that these masks had already been used elsewhere in the scene. Is there a known limitation to how many times the same image can be used as a mask? I have not seen this documented. I had to work around this by creating duplicates of the images with different file names. which seems stupid and its inefficient, especially when I had to create an extra 24 images. Im guessing mask images are not able to be instanced like general image objects? 

Hi @BeatsnBobs,

I’ve not encountered this before, and I don’t know of any limitation like this. Are all of your masks “valid” and do they adhere to the size/border guidelines? Are you scaling any of the objects that you apply masks to, while not scaling others? Is this showing in the Simulator and devices? If on devices, which ones and which OSs?

Thanks,

Brent

Hi Brent, I did actually increase the size to give enough border so they are now 200 PX square. Perhaps that is the problem. Some of the objects do change size. Are you saying that if maskA is applies to object A and B I can’t resize object A if object B is not resized? This is showing on mac, windows, and on iPad. It’s definitely fixed by creating seperate masks which seems odd if the reason why the didn’t work was because of the size or scaling. I will try to make a quick test and post it up.

200x200 should be fine (it’s that “divisible by 4” thing which some users aren’t aware of). If you’re scaling some objects, try scaling its mask along with it, in the same code block (next line or so) where you scale the object.

Brent

I won’t be able to do that really as all the others work. Masks are supposed to scale with the objects and if I did this then the others wouldn’t work. They are all grouped , and the group is scaled if that makes any difference? Also i can click on the objects to change them and what i noticed is if I do click on an object , then another one after that which would be sharing the mask same mask as the previous one, that’s when it gets corrupted. I click on a different one and it comes back,
It’s just inconsistent which is a pain.
I need to demonstrate this so will get an example posted up.

Hi @BeatsnBobs,

I’ve not encountered this before, and I don’t know of any limitation like this. Are all of your masks “valid” and do they adhere to the size/border guidelines? Are you scaling any of the objects that you apply masks to, while not scaling others? Is this showing in the Simulator and devices? If on devices, which ones and which OSs?

Thanks,

Brent

Hi Brent, I did actually increase the size to give enough border so they are now 200 PX square. Perhaps that is the problem. Some of the objects do change size. Are you saying that if maskA is applies to object A and B I can’t resize object A if object B is not resized? This is showing on mac, windows, and on iPad. It’s definitely fixed by creating seperate masks which seems odd if the reason why the didn’t work was because of the size or scaling. I will try to make a quick test and post it up.

200x200 should be fine (it’s that “divisible by 4” thing which some users aren’t aware of). If you’re scaling some objects, try scaling its mask along with it, in the same code block (next line or so) where you scale the object.

Brent

I won’t be able to do that really as all the others work. Masks are supposed to scale with the objects and if I did this then the others wouldn’t work. They are all grouped , and the group is scaled if that makes any difference? Also i can click on the objects to change them and what i noticed is if I do click on an object , then another one after that which would be sharing the mask same mask as the previous one, that’s when it gets corrupted. I click on a different one and it comes back,
It’s just inconsistent which is a pain.
I need to demonstrate this so will get an example posted up.