0
Under review

Add mask to selected layer?

deastman 9 years ago updated by Sébastien Lavoie 9 years ago 1
I'm trying to modify the mask example so that it adds a mask to the selected layer, rather than creating a new layer.  I know I'm missing something simple, but I've been banging my head against this for quite a while now.  I would have thought that the following would work, but it doesn't.  The script completes without error, but nothing is created.

masks:
  - inverted: true
    name: My mask
    feather: [10, 10]
    opacity: 50
    expansion: 20
    path:
      type: ellipse
      width: 1280
      height: 720
      position: [0, 0]
Under review
Your code is perfect, there is actually a bug as the mask doesn't get generated on the currently selected layer. It only works by creating a new layer: 

layers:
  - name: test
    type: solid
    masks:
      - inverted: true
        name: My mask
        feather: [10, 10]
        opacity: 50
        expansion: 20
        path:
          type: ellipse
          width: 1280
          height: 720
          position: [0, 0]


Thanks for reporting it. The issue will be fixed in the next upcoming version.