1

If I create a new layer and draw into it with a single colour, then change my foreground colour, is there any way I can select the colour I painted into the layer as my foreground colour again, without using the dropper?

I'm trying to work it into an action and I want to select the colour from the layer with no manual effort so the action runs smoothly.

The actions purpose is to let me take a raster shape that I've drawn on a layer and transform it into a Fill Layer shape with the same colour as the original layer. The closest I've got is to create an action that works providing I manually select the colour with the eyedropper before I run it, but it would be good to exclude that manual step.

Thanks.

Edit for clarification So on this image I would want to turn Layer 3 (the teal layer) into a 'Base Layer' while preserving it's shape and colour, without having to manually set the colour in any way.

enter image description here

  • What you're asking is not possible but I, or someone else, may be able to offer you another solution but first I need to understand the purpose and goal. Come into Inkspot, our chatroom and I can try to help you. – Ryan Aug 7 at 16:11
  • I don't have sufficient 'reputation' to speak there... – Ian Aug 8 at 8:47
  • Go read and upvote on some answers and questions and you'll get rep. Otherwise try to explain better on here. I have a few ideas in mind but without knowing the ultimate goal am not sure if any work for you. – Ryan Aug 8 at 12:59
  • I really can't think of a way to explain it concisely. The actions are for colouring within line work. We have one which lets us make a selection with the magic wand and then make a fill layer from it. At the point of creation we select the colour we want. The fill layer is labelled 'Base Layer' which is then used as the basis for several other actions we use. All good. Sometimes however we want to paint in the selection by hand rather than by using the magic wand. In those cases we still need to transform the painted layer into a 'Base Layer' for use in the other actions...more to come... – Ian Aug 8 at 13:14
  • 1
    Whew! Took a bit of tinkering but I think Ive got a working solution for you! I'll document it and maybe even do a video of it tonight or Saturday for you. – Ryan Aug 8 at 19:39
0
  • Copy the single color hex number used in the drawing
  • To recover it as a foreground color, add this command to the action:
    • Click the foreground color
    • Paste

Add after the comments:

The previous answer only works by obtaining the color once, in this way the copied hexadecimal number is saved in the clipboard.

By making several layers at the same time using different colors, the only possibility of obtaining the color of the first layer is using colors from the Swatches Panel. Selecting a color from the Swatches Panel can be inserted as an action command.

Second add:

While recording the action, instead of selecting the colors from the tool panel, do it from the Swatches Panel. The action is recorded with this used swatch and this command can be duplicated and place it everywhere in the action and will always be the same color.

enter image description here

  • Thanks again Danielillo, but I'm uncertain how I'd copy the single hex number? It's not the only colour in the drawing, just the only colour in that layer. – Ian Aug 7 at 9:42
  • I suppose at some point you have selected that color, when you open the foreground color to get it, the hexadecimal number is active, choose the color and copy. – Danielillo Aug 7 at 9:47
  • Say I make 5 layers and each one has a different colour, painted with a brush. Once I've drawn the 5th layer my foreground colour will be a different one to the 1st layer. Action process: Set Selection (using ctrl click on the layer in the layer panel) Make Fill Layer Fill (using foregorund colour) Select backward layer Delete layer I want to be able to select the 1st layer in may stack and have the action set the foreground colour to be the same as the single colour in that layer, without me having to manually select it with the eyedropper; and then use that in the Fill step. – Ian Aug 7 at 10:25
  • Answer updated. – Danielillo Aug 7 at 10:35
  • Ah thanks again Danielillo. I don't think it's possible to do what I'm wanting. It still requires a manual selection of the colour I want in order to make the swatch. It saves time in the action, but defers the selection of the colour elsewhere. But I do appreciate the time spent trying to solve this for me, and I've learnt a few things that may help with future actions! – Ian Aug 7 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.