Awesome-mode Generator Plugin
This is an experimental node.js plugin for Photoshop's Generator extensibility layer. It currently implements three possibly-fun-and-or-humorous features: voice recognition, spoken feedback, and brush drawing via Leap Motion.
- This plugin is not meant for real-world use! It demonstrates some random things that can be done with Generator and might perhaps inspire some more useful development.
- At the moment this has only been tested on a few machines, and not at all on Windows. Issue reports and pull requests are welcome!
- Code is in demo state right now, there is some architectural weirdness to be cleaned up.
- Install npm if you haven’t already.
- Clone or download the generator-core repository
- In a terminal, from
- Clone or download this repository, and from inside the folder run
- Install julius. The easiest way is probably to use macports and run the command
sudo port install julius, but it can also be built from source, or perhaps run from binaries.
If you have trouble installing julius on Mac, installing portaudio may fix the problem. Try doing
sudo port install portaudioand then installing julius again.
Using the plugin
- Start Photoshop and open a new file.
- Run the command:
node path/to/generator-core –f path/to/awesome.generate
If you get an error like "connection refused", open Preferences > Plugins and make sure Generator and Remote connections are enabled, and the password field is set to the default value 'password'.
- Wait for the plugin to initialize, and then select File > Generate > Awesome mode
- If julius is installed then voice commands should now be recognized, and if you have a Leap Motion device then it should be detected.
To use voice commands, preface each command with
Okay Photoshop. You can also chain together commands with
Thank you. That is:
Okay Photoshop... [command].. Thank you.. [command]..
- [New / Duplicate / Delete] Layer
- Random color
- Voice mode
When enabled, the plugin responds to voice commands via the
say utility. Enable it by saying
Okay Photoshop.. Voice mode.
If you have a Leap motion device, connect it any time and point with one finger. If you hover on the near side of the device (the side towards you), the plugin will mark the hover position with guide lines. To draw, move your finger forward over the plane of the device. Performance is poor for this right now - finding a faster way to draw is on the todo list.