3 Replies Latest reply on Jun 26, 2013 7:56 AM by Pascalculator

    Photoshop Scripting MVC-framework: feedback appreciated.


      Hello fellow scripters,


      ever since I found out about photoshop scripting, I've been lurking on this board quite frequently. So first of all, thank you for all the amazing insights! I decided the time has come to give something in return.


      My question/request: would you be interested in testing a photoshop scripting framework (working title: Phrame.js) and provide me with your feedback? Send me a mail (info@pascalculator.be) or contact me on twitter (@pascalculator) and I will get back to you with instructions.


      Here's the back story. The last couple of months I've been experimenting with automatically creating concentric shapes. Even though these weird shapes might seem a bit out there, this will probably sound familiar to all of you: In the beginning I had a small script, but as the weeks passed, my script grew longer and longer, eventually resulting in an incredibly verbose 1000 line file which was hard to read, maintain and update. If I wanted to expand my script any further and keep it maintable, readable and updatable, I needed to find a way to organize my code. The first thing I did was do some research, but as you also already know Photoshop scripting is a fairly small niche with nice, but limited community driven tools.


      So I decided I would build something myself and I started experimenting with building a JavaScript MVC framework for Photoshop scripting. I based myself on the CodeIgniter (PHP)-framework, because of it's simplicity and transposed it to a very simplistic JavaScript version. I ended up with something that amazingly enough worked pretty well and did wat it was created for. After a few months of using it, it has proven to be quite robust.


      The framework is written in JavaScript, is MVC-based with a single point of entry and has a separated application and system structure, allowing you to easily expand the script without fear of breaking the system internals. It has a very small library of functions which are useful for every photoshop scripter (but could use expansion) and it also has a very rudimentary database storage system based on the JSON-format.


      I've talked about this with a friend and he told me I should release the framework. I thought about it and it indeed seems like a sensible thing to do, especially because I've been feasting on all this Photoshop Scripting knowledge, but never gave anything back to the community.


      My future plans are providing the framework with adequate documentation and releasing it under an non-restrictive open source (probably MIT-)license. On one condition: gathering enough feedback to help me fuel this project. I want to make sure my contributing adds up to something and that's why I would greatly appreciate your feedback.


      Also, if you feel that this project has potential and you feel like contributing to it besides providing me with feedback: don't hesitate to contact me: info@pascalculator.be or twitter @pascalculator.


      I'm looking forward to your replies!