Effects
LAYER EFFECTS HELPERS
NO_DIALOG = DialogModes.DisplayNoDialogs
module-attribute
BLENDING EFFECTS UTILITIES
apply_fx(layer, effects)
Apply multiple layer effects to a layer. @param layer: Layer or Layer Set object. @param effects: List of effects to apply.
Source code in src/helpers/effects.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
|
apply_fx_bevel(action, fx)
Adds a bevel to layer effects action. @param action: Pending layer effects action descriptor. @param fx: Bevel effect properties.
Source code in src/helpers/effects.py
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
|
apply_fx_color_overlay(action, fx)
Adds a solid color overlay to layer effects action. @param action: Pending layer effects action descriptor. @param fx: Color Overlay effect properties.
Source code in src/helpers/effects.py
281 282 283 284 285 286 287 288 289 290 291 |
|
apply_fx_drop_shadow(action, fx)
Adds drop shadow effect to layer effects action. @param action: Pending layer effects action descriptor. @param fx: Drop Shadow effect properties.
Source code in src/helpers/effects.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
|
apply_fx_gradient_overlay(action, fx)
Adds gradient effect to layer effects action. @param action: Pending layer effects action descriptor. @param fx: Gradient Overlay effect properties.
Source code in src/helpers/effects.py
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
|
apply_fx_stroke(action, fx)
Adds stroke effect to layer effects action. @param action: Pending layer effects action descriptor. @param fx: Stroke effect properties.
Source code in src/helpers/effects.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
|
clear_layer_fx(layer)
Removes all layer style effects. @param layer: Layer object
Source code in src/helpers/effects.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
copy_layer_fx(from_layer, to_layer)
Copies the layer effects from one layer to another layer. @param from_layer: Layer to copy effects from. @param to_layer: Layer to apply effects to.
Source code in src/helpers/effects.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
|
disable_layer_fx(layer=None)
Passthrough function for change_fx_visibility
to disable effects on layer. @param layer: ArtLayer or LayerSet, will use active if not provided.
Source code in src/helpers/effects.py
93 94 95 96 97 98 |
|
enable_layer_fx(layer=None)
Passthrough function for change_fx_visibility
to enable effects on layer. @param layer: ArtLayer or LayerSet, will use active if not provided.
Source code in src/helpers/effects.py
85 86 87 88 89 90 |
|
rasterize_layer_fx(layer)
Rasterizes a layer including its style. @param layer: Layer object
Source code in src/helpers/effects.py
118 119 120 121 122 123 124 125 126 127 128 |
|
set_fill_opacity(opacity, layer)
Sets the fill opacity of a given layer. @param opacity: Fill opacity to set. @param layer: ArtLayer or LayerSet object.
Source code in src/helpers/effects.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
set_layer_fx_visibility(layer=None, visible=True)
Shows or hides the layer effects on a given layer. @param layer: ArtLayer or LayerSet, use active if not provided. @param visible: Make visible if True, otherwise hide.
Source code in src/helpers/effects.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|