Adjustments
src.helpers.adjustments.create_vibrant_saturation(vibrancy: int, saturation: int) -> None
Experimental scoot action to add vibrancy and saturation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vibrancy | int | Vibrancy level integer | required |
saturation | int | Saturation level integer | required |
Source code in src\helpers\adjustments.py
26 27 28 29 30 31 32 33 34 35 36 37 |
|
src.helpers.adjustments.create_color_layer(color: Union[list[int], SolidColor, str], layer: Union[ArtLayer, LayerSet, None], docref: Optional[Document] = None, **kwargs) -> ArtLayer
Create a solid color adjustment layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
color | list[int] | SolidColor | str | Color to use for the layer. | required |
layer | ArtLayer | LayerSet | None | ArtLayer or LayerSet to make active, if provided. | required |
docref | Document | None | Reference Document, use active if not provided. | None |
Returns:
Type | Description |
---|---|
ArtLayer | The new solid color adjustment layer. |
Source code in src\helpers\adjustments.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
src.helpers.adjustments.create_gradient_layer(colors: list[dict], layer: Union[ArtLayer, LayerSet, None], docref: Optional[Document] = None, **kwargs) -> ArtLayer
Create a gradient adjustment layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
colors | list[dict] | List of gradient color dicts. | required |
layer | ArtLayer | LayerSet | None | ArtLayer or LayerSet to make active, if provided. | required |
docref | Document | None | Reference Document, use active if not provided. | None |
Returns:
Type | Description |
---|---|
ArtLayer | The new gradient adjustment layer. |
Source code in src\helpers\adjustments.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
|