Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script change fill color layer

Explorer ,
Aug 03, 2024 Aug 03, 2024

Hey fam,

 

I want an script when selected (Vector shapes, solid color layers) I can set a color a from the psd itself as picking one of the squares below

 

bottom left are the color codes suggested,

 

GregCont_1-1722732402609.png

I already have the script to sort/filter the layers I want but I would like someway it picks the color from the bottom color chart and fill all selected layers.

 

Thanks Fam

 

 

 

TOPICS
Actions and scripting , macOS , Windows
4.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Aug 03, 2024 Aug 03, 2024

There's not much for me to go by.

 

So here are some general links that may or may not help depending on the file setup:

 

 
And:
 
// Script to change color on all selected layers supports solid, shape, text and artlayers
var doc;

if (app.documents.length <= 0) {
    alert("No active document!");
} else {
    doc = app.activeDocument;
    doc.s
...
Translate
Community Expert , Aug 07, 2024 Aug 07, 2024

@GregCont 

 

Give this script a go:

 

/*
Recolour Colour Label Layers from Palette Swatches.jsx
v1.0 - 7th August 2024, Stephen Marsh
https://community.adobe.com/t5/photoshop-ecosystem-discussions/script-change-fill-color-layer/td-p/14778076
*/

#target photoshop

/***** Stage 1 - Get the colour palette swatches *****/

// Hide the Photoshop panels
app.togglePalettes();

// Select the colour palette layer
app.activeDocument.activeLayer = app.activeDocument.layers.getByName('COLORPALETTE');

// E
...
Translate
Adobe
Explorer ,
Aug 07, 2024 Aug 07, 2024
LATEST

Bro 👀,

Is there a way I can be your student? THIS IS CRAZY!!!!!!! I don't know if this is the craziest thing you have ever done with (scripts of course) lol, but defenetively  YOU GOT THIS! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines