Skip to content

tatsuteb/PSDLayerName

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSDLayerName Parser

PSDLayerNameParser is a PSD layer and layer group parser. It corresponds to the unicode layer name.

How to get

How to use

// rootElement is a root node. It doesn't have Name.
var rootElement = Parser.Parse("./TestData.psd");

// Get a layers and layer groups tree as a json string.
rootElement.Serialize();  // return {"Children": [{"Children": [{"Children": [],"IsGroup": false,"Name": "Layer1-1"},{"Children": [],"IsGroup": false,"Name": "Layer1-2"}],"IsGroup": true,"Name": "Group1"},{"Children": [],"IsGroup": false,"Name": "日本語のレイヤー"}],"IsGroup": true,"Name": ""}

// Get children of root element or layer group element.
rootElement.GetChildren();  // return LayerElement[]

var firstChild = rootElement.GetChild(0);
// Get layer or layer group name.
firstChild.Name;
// Get a flag indicating whether it is a group layer or not.
firstChild.IsGroup;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages