Flip and invert the colors of the selected area - Javascript for Photoshop

So I am writing a script for Photoshop using Javascript and I a selection I want return vertically and then invert the colors of a layer, but I can't find a command on how to do it.

Here is what I tried:

docRef.selection.select(shapeRef)

docRef.activeArtLayer.Invert()

docRef.activeArtLayer.flip(Direction.VERTICAL)

I haven't checked the others your lines, but your invert line should be:

docRef.activeLayer.invert)

Tags: Photoshop

Similar Questions

Maybe you are looking for