LayerColor class¶
Bases: pytvpaint.utils.Refreshable
The color of a layer identified by an index. Layer colors are specific to a clip.
Construct a LayerColor from an index and a clip (if None it gets the current clip).
Source code in pytvpaint/layer.py
226 227 228 229 230 231 232 233 234 235 236 237 |
|
index: int
property
¶
The layer color index.
clip: Clip
property
¶
The layer color clip.
is_visible: bool
property
¶
Get the visibility of the color index.
refresh() -> None
¶
Refreshes the layer color data.
Source code in pytvpaint/layer.py
239 240 241 242 243 |
|
name(value: str) -> None
¶
Set the name of the color.
Source code in pytvpaint/layer.py
270 271 272 273 274 275 |
|
color(value: george.RGBColor) -> None
¶
Set the color value.
Source code in pytvpaint/layer.py
286 287 288 289 |
|
lock_layers(lock: bool) -> None
¶
Lock or unlock all layers with this color.
Source code in pytvpaint/layer.py
297 298 299 300 301 302 303 |
|
show_layers(show: bool, mode: george.LayerColorDisplayOpt = george.LayerColorDisplayOpt.DISPLAY) -> None
¶
Show or hide layers with this color.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show |
bool
|
whether to show the layers using this color or not |
required |
mode |
pytvpaint.george.LayerColorDisplayOpt
|
the display mode. Defaults to george.LayerColorDisplayOpt.DISPLAY. |
pytvpaint.george.LayerColorDisplayOpt.DISPLAY
|
Source code in pytvpaint/layer.py
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
|
select_layers(select: bool) -> None
¶
Select or unselect layers with this color.
Source code in pytvpaint/layer.py
322 323 324 325 326 327 328 |
|