Files
ps/examples_test.go
Spencer Brower 206b94dcac Updates, Improvements, and Fixes
* Moved scripts / runner to separate package
    allows future replacement with PS Plugin.
* Fixed issues with Refresh and removed "layer" function.
* Added github documentation via godocdown.
* Reduced number of calls to Panic.
* Updated Tests
* Updated documentation.
* Fixed warnings.
* .gitignore now ignores .test and .out files.
2018-06-18 23:51:52 -04:00

11 lines
251 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');
}