Page 1 of 1

Duplicating image layer

Posted: Tue Apr 28, 2020 11:59 pm
by Jkoseattle
I am playing with the Bitmap tools in 13, and I thought I could do something very simple that's opened up something I am not sure how to work around.

1. Create a new image layer
2. Draw something red in it
3. Duplicate the layer
4. Move the image over a bit so both layers can be seen
5. Change to the bucket tool, lock transparency in the new layer, and change the brush color to blue
6. Using the bucket tool, change the copied layer from red to blue
EXPECTED
There will be a red image and an identical blue image near it
ACTUAL
Both layers change to blue

What I've discovered is that the image layers are bound to an external image, and when you duplicate it, the duplicate is bound to the same image, so changing one changes both. This makes sense now that I get it

Question: How do I break this binding, so that I can duplicate an image layer, but have it create a different file so that I can change the color of one but not the other?

Re: Duplicating image layer

Posted: Wed Apr 29, 2020 8:10 am
by slowtiger
Duplicate image layer, go to layer tab "image", "set source image". First make sure that the new image has exactly the same dimensions as the old one, otherwiese it will get distorted.

Re: Duplicating image layer

Posted: Wed Apr 29, 2020 4:00 pm
by Jkoseattle
Thanks, I think I was unclear in my question. I don't have a new image, I just duplicated the image layer, and both layers point to the same file. So what I'm inferring here is that the way to fix this would be to copy the source file outside of Moho first, then follow your steps. I guess it seemed like there should be an option to create a duplicate source image when copying an image layer. But I guess not.

Re: Duplicating image layer

Posted: Wed Apr 29, 2020 7:37 pm
by Greenlaw
Image layers can be duplicated in two different ways.

When you select Duplicate Layer, you're essentially creating a 'reference' layer because the layer is sharing the same original file you saved when you created the layer. Any changes made to one are made to all duplicates.

To do what you want, you need to choose a different right-click command called Duplicate As PNG. This creates a copy of the original file that you can modify independently of the original.

Re: Duplicating image layer

Posted: Thu Apr 30, 2020 6:11 pm
by Jkoseattle
Aha! Exactly what I needed! Thanks!