npm.io
1.0.0 • Published 9 years ago

photoshop-connection

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
19

Photoshop-Connection

npm-image version-image

Install


npm install photoshop-connection --save
Description

Node.js module for connecting to Adobe Photoshop Server. Based on the connection libraries of Adobe Generator.

Usage

const photoshopConnection = require('photoshop-connection')

let options = {
    hostname: '127.0.0.1',
    password: 'password',
    port: 49494
}

photoshopConnection.createClient(options)
	.then((photoshopClient) => {
		photoshopClient.sendCommand(`alert('Hello from ExtendScript!');`)
	})
	.catch((err) => {
		console.log(`Connection Error: ${err}`)
	})
Example

Example Project demostrating module basic functionality.

The module creates a new client instance, once a connection is established, it sends a basic command as String to be evaluated on Adobe Photoshop.

Scope

Tested in Adobe Photoshop CC2014 (v15.x), Adobe Photoshop CC2015 (v16.x), Adobe Photoshop CC2015.5 (v17.x), Adobe Photoshop CC2017 (v18.x)

Changelog

1.0.0 (Nov 29 2016)

  • Create a connection client based on the provided options.
  • Send commands to Photoshop based on a JSX String.
  • Catch any connections errors.

0.0.0 (Nov 27 2016)

  • Initial development.

License

MIT Antonio Gomez