0
Wird überprüft

Add mask to selected layer?

deastman vor 10 Jahren aktualisiert von Sébastien Lavoie vor 10 Jahren 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]
Wird überprüft
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.