mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
11 lines
250 B
Go
11 lines
250 B
Go
package ps
|
|
|
|
import "fmt"
|
|
|
|
func ExampleJSLayer() {
|
|
// The path of a layer inside a top level group.
|
|
path := "Group 1/Layer 1"
|
|
fmt.Println(JSLayer(path))
|
|
// Output: app.activeDocument.layerSets.getByName('Group 1').artLayers.getByName('Layer 1')
|
|
}
|