Skip to content

sizigi/photoshop-connection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node.js module for connecting to Adobe Photoshop Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%