-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get artboard background color #377
Comments
Hi @canoztokmak. I wouldn't say it is intentionally left out, but we haven't done the coding to add that since that functionality was introduced relatively recently. The workaround is to add an additional locked shape layer that sits at the bottom of the artboard group. I'll mark this as a feature request. Hopefully it is an option we can easily add. |
ok, thanks @chadrolfs .. looking forward to it ! |
@canoztokmak Here is some extendscript I cobbled together from a few sources to show how the artboard background color can be fetched in the current version of photoshop. This sample script assumes an artboard layer is selected in the open document. Let me if you have trouble getting this approach to work, or if it is not sufficient for your needs.
|
hey @mcilroyc ! thanks for the workaround.. it works like a charm, much appreciated ! |
It seems that the script works only for custom backgrounds. It returns unpredictable results for preset values like "White", "Black" or "Transparent" ( |
@GDreyV you can distinguish those different types of background colors by retrieving it from artboard object. See below snippet:
|
Great! Thanks a lot! |
hey @mcilroyc. Can I take the alpha of the background too? |
I'm not sure what you mean @antonisaantoniou. see previous comment about determining if the artboard background is "Transparent" using |
By using neither generator nor extend script features, we cannot retrieve the background color for artboards.
Is this intentionally left out or am I missing something ?
The text was updated successfully, but these errors were encountered: