Duplicating image layer

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Jkoseattle
Posts: 430
Joined: Tue Nov 08, 2016 6:39 pm

Duplicating image layer

Post 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?
Most of the time I'm doing music stuff. Check me out at http://www.jimofseattle.com/music.

Thing I did for work: https://www.youtube.com/watch?v=LgFYGqifLYw
User avatar
slowtiger
Posts: 6067
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Duplicating image layer

Post 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.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
Jkoseattle
Posts: 430
Joined: Tue Nov 08, 2016 6:39 pm

Re: Duplicating image layer

Post 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.
Most of the time I'm doing music stuff. Check me out at http://www.jimofseattle.com/music.

Thing I did for work: https://www.youtube.com/watch?v=LgFYGqifLYw
User avatar
Greenlaw
Posts: 9191
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Duplicating image layer

Post 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.
Last edited by Greenlaw on Fri May 01, 2020 5:34 am, edited 3 times in total.
User avatar
Jkoseattle
Posts: 430
Joined: Tue Nov 08, 2016 6:39 pm

Re: Duplicating image layer

Post by Jkoseattle »

Aha! Exactly what I needed! Thanks!
Most of the time I'm doing music stuff. Check me out at http://www.jimofseattle.com/music.

Thing I did for work: https://www.youtube.com/watch?v=LgFYGqifLYw
Post Reply