mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
v2 now in separate folder
This commit is contained in:
10
v2/examples_test.go
Normal file
10
v2/examples_test.go
Normal file
@@ -0,0 +1,10 @@
|
||||
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')
|
||||
}
|
||||
Reference in New Issue
Block a user