Added Refresh function to update layers

* Fixed functions that were mode dependant.
* Fixed getLayerSet.jsx to return set visibility.
This commit is contained in:
Unknown
2018-04-03 16:56:12 -04:00
parent 669d1182f4
commit d52e896ac3
4 changed files with 95 additions and 47 deletions

18
ps.go
View File

@@ -154,19 +154,11 @@ func DoAction(set, name string) error {
return err
}
// Layers returns an array of ArtLayers from the active document
// based on the given path string.
/*func Layers(path string) ([]ArtLayer, error) {
byt, err := DoJs("getLayers.jsx", JSLayer(path))
var out []ArtLayer
err = json.Unmarshal(byt, &out)
if err != nil {
return []ArtLayer{}, err
}
return out, err
}*/
// ApplyDataset fills out a template file with information from a given dataset (csv) file.
// ApplyDataset fills out a template file with information
// from a given dataset (csv) file. It is important to note that running this
// function will change data in the Photoshop document, but will not update
// data in the Go Document struct (if any); you will have to implement syncing
// them yourself.
func ApplyDataset(name string) ([]byte, error) {
return DoJs("applyDataset.jsx", name)
}