Releases: sbrow/ps
Releases · sbrow/ps
v2.0.0: V2.0 update
ps v2.0.0 Release Notes
Features
Open()
Now returns the activeDocument after opening the file.
Example: Opening a document previously required this:
err := Open(/*filename*/)
if err != nil {
// Handle err
}
doc, err := ActiveDocument()
if err != nil {
// Handle err
}
now requires this:
doc, err := Open(/*filename*/)
if err != nil {
// Handle err
}
JSLayer()
Removed semicolon from the end of output.
Example:
path := "Group 1/Layer 1"
fmt.Println(JSLayer(path))
Now outputs:
app.activeDocument.layerSets.getByName('Group 1').artLayers.getByName('Layer 1')
Instead of:
app.activeDocument.layerSets.getByName('Group 1').artLayers.getByName('Layer 1');
Document
- Added FullName() which returns path to the .psd file.
- Changed Filename() to DumpFile(), as Filename was misleading.
- Dump function now saves the file as well,
to help reduce the frequency of de-syncs. - Dump function now saves json files alongside the .psds
instead of in a separate data folder- encountered issues when using
the package as a module in go 1.11beta2. - Added Save()
Testing
- Added TestDocument_Save()
- Added TestDocument_Dump()
Fixes
- DoAction now runs correctly.
Misc.
- Renamed pkgpath to pkgPath, to better fit go's standards.
- Added sweet logo made by psikoz
v1.2.1
v1.2.0
v1.2.0 Release Notes
Features
- Moved scripts / runner to separate package. This will make it eaiser to do a drop in C++ replacement down the line.
- Reduced number of calls to Panic.
- Updated Tests.
- Fixed warnings.
Documentation
- Updated TODOs.
- More coverage accross the board.
- Added github documentation via godocdown.
Bug Fixes
- Fixed issues with Refresh and removed "layer" function.
- .gitignore now ignores .test and .out files.\n
v1.1.0
v1.1.0 Release Notes
Features
- Migrated colors to a subpackage
*Added a TextItem Struct to Artlayers. - Converted scripts to use the same getLayers() function from lib.js
Bug Fixes
- Fixed an error in dojs.vbs where arguments were being split.
- Fixed SetText() to update bounds.
v1.0.0
v1.0.0 Release Notes
Features
General
- Document data now gets stored in a json file - much improved speed over loading everything manually.
- New functions:
- Document.Save()
- DoAction()
- ApplyDataset()
- Group.GetLayer(name string)/Group.GetLayers()
- ArtLayer/LayerSet.SetVisible()
LayerSets
- now have bounds.
- Can now retrieve Layers from Groups by name.
TextItem
- Writable.
- Formatable.
Colors
- Can now color layers and apply strokes via Color objects.
- Support for RGB and Hex formats.
- Comes with White, Gray, and Black
- setStroke is skipped when stroke has already been set.
Refresh
- Added Refresh function to update layers.
- Refresh() is now more robust - when an error is encountered, the layer is reloaded automatically.
Javascript
- Added flush function to writing, for faster debugging.
- Javascript errors are now output to console instead of alerts.
- Can now save and load from json.
Bug Fixes
- Layersets now can be moved correctly.
- Fixed functions that were mode dependant.
- Fixed getLayerSet.jsx to return set visibility.
- Fixed a bug in getActiveDoc.jsx