Visibility When Color In
| Tag Info | |
|---|---|
| Syntax | [Visibility When Color In]
|
| Alias | [vwci]
|
| Used On | [dynamic] children |
| Requires | Color Link |
Visibility When Color In is a complex tag, that is used to show a specific layer, only when the linked color, has chosen a color that matches one of the color options of the visibility-when-color-in, palette's colors.
The visible-when-color-in tag makes a layer automatically show or hide based on which color is currently active on itself item. When the active color matches one of the colors in the named palette, the layer becomes visible. When a color outside that palette is selected, the layer hides itself. This lets you create variants — like different scale shapes, pattern overlays, or alternate details — that only appear for specific color choices.
Usage
The tag in a PSD file is written as [visible-when-color-in:paletteName], where paletteName is the name of a palette defined elsewhere in the PSD. It can also be written as [vwci:paletteName]. The palette name is required and must match an existing palette's name exactly.
[visible-when-color-in] must always be used alongside [color-link] on the same layer. The layer also cannot have any children of its own.
Example 1:
For example, create 2 palettes:
[local-palette:Shirt_Colors] (including the color FF0000 and 0000FF) [local-palette:Red_or_Blue] (with only the colors FF0000 and 0000FF)
Then in the shirts, have a layer that uses "Shirt Colors", and another layer that has "Red or Blue", these two layers can be linked with the same Color Link, for example:
Left Shirt [palette:Shirt_Colors][color-link:test] Right Shirt [color-link:test][visibility-when-color-in:Red_or_Blue]
When a user selects the Left Shirt layer, and colors it red or blue, the right shirt layer will become visible
Example 2:
A mermaid tail has a `[local-palette:colours]` with 9 colors. A "spikey scales" layer uses `[color-link:scales][visible-when-color-in:spike]`, and `[local-palette:spike]` contains colors 1–3 from the main palette. A "round scales" layer uses `[color-link:scales][visible-when-color-in:round]`, and `[local-palette:round]` contains colors 4–6. When the player picks colors 1–3, spikey scales appear. Colors 4–6 show round scales. Colors 7–9 show neither.
Additional Tags to Use with Visible-When-Color-In
[color-link] — Required. [visible-when-color-in] will not work without [color-link] on the same layer.
Cannot be combined with [visibility-link].