sketch-hq / SketchAPI

The JavaScript plugin library embedded in Sketch
https://developer.sketch.com/reference/api
MIT License
842 stars 126 forks source link

APIs missing: set Fills blending options #887

Closed matteogratton closed 1 year ago

matteogratton commented 2 years ago

Similarly to the Opacity, this option is not currently available in the APIs:

CleanShot 2022-06-23 at 11 50 25

Currently, it is possible to set them only via: layer.style.sketchObject.fills()[1].contextSettings().setBlendMode(13);

It would be nice to have something like: layer.style.fills[value].blendMode = "Overlay"

It is also missing a way to read the option: layer.style.sketchObject.fills()[1].contextSettings().blendMode();