Highlighted

[Scripting] set showColorPicker() default color?

Community Beginner ,
Sep 02, 2020

Copy link to clipboard

Copied

I am looking for a way to set the default color when the color picker is opened, ideally one that doesn't update the foreground color first, which was my original solution. The extension I am building uses some color inputs, which when clicked, should open the color picker with whatever the current color input value is. 

 

The foreground color solution worked, but I noticed that if you update the foreground color with a solid color layer selected, it updates the solid color layer aswell.

 

TOPICS
Actions and scripting

Views

18

Likes

Translate

Translate

Report

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

[Scripting] set showColorPicker() default color?

Community Beginner ,
Sep 02, 2020

Copy link to clipboard

Copied

I am looking for a way to set the default color when the color picker is opened, ideally one that doesn't update the foreground color first, which was my original solution. The extension I am building uses some color inputs, which when clicked, should open the color picker with whatever the current color input value is. 

 

The foreground color solution worked, but I noticed that if you update the foreground color with a solid color layer selected, it updates the solid color layer aswell.

 

TOPICS
Actions and scripting

Views

19

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 02, 2020 0

Have something to add?

Join the conversation