4
4
Fork 0
This repository has been archived on 2025-01-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
json-photoshop-scripting/JSON-Simplified-Formats/Custom-Shape-Object-Simplified-Format
2018-04-15 16:41:40 +02:00
..
images First commit 2018-04-15 16:41:40 +02:00
README.md First commit 2018-04-15 16:41:40 +02:00

Custom Shape Object Simplified Format

  • Input format of jamHelpers.toCustomShapeObject.

Simplified format

Defined as a two-element JSON array: [ customShape, unit ]

customShape : five-element JSON array: [ name, left, top, right, bottom ]
unit : string (among "distanceUnit", "percentUnit", "pixelsUnit")

name : string
left : number
top : number
right : number
bottom : number

Example

[ [ "Yin Yang", 20, 20, 80, 80 ], "percentUnit" ]

Yin Yang Custom Shape