Photoshop CS6 ExtendedScript - Generate a Grid.

Questions about programming languages and debugging
Post Reply
User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Photoshop CS6 ExtendedScript - Generate a Grid.

Post by maboroshi »

I spent hours last night racking my brain about building a json file for this software I am doing, not necessarily building the json file but using it the way I wanted in my calling function. I am building a mobile bus schedule using Lua/Corona SDK. We wanted to use json to be able to update info easily without having to recompile and resubmit an app to the stores for each new schedule update.

I ended up writing some javascript using photoshops extendedscript api and using the the data we pass to the function to generate an appropriate image. This allows us to use Corona SDKs built in image downloading function to update schedules as we need.

Although this isn't the best solution - I like it because it is pretty hacky.

Although the script isn't 100 % perfect I am adding it in to this message for your pleasure/convenience

Thanks to bad_brain for helping me solve a problem in the code.

*cheers!

:D Mabo

If you wish to try this out make sure you select Photoshop from the extendscript interface

http://code.suck-o.com/42551

Image

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Re: Photoshop CS6 ExtendedScript - Generate a Grid.

Post by maboroshi »

Here is the completed script

http://code.suck-o.com/42554

And a demo if anyone is interested:

Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: Photoshop CS6 ExtendedScript - Generate a Grid.

Post by ph0bYx »

Looking good! *thumb*

reparto
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 288
Joined: 27 May 2013, 11:30
10

Re: Photoshop CS6 ExtendedScript - Generate a Grid.

Post by reparto »

How far does Extendscript go? can it be used for real-time generation or is it simply a means to automate image generation?
Selling invisible pets:
Dogs - 0.5 Bitcoins
Cats - 0.7 Bitcoins
Unicorns - 10 Bitcoins
Chimpanzee - 2 Bitcoins

PM me if you are interested, will ship via priority airmail, will accept escrow services

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Re: Photoshop CS6 ExtendedScript - Generate a Grid.

Post by maboroshi »

I was wondering that myself. I know Adobe has it's online/cloud (not Creative cloud it was something different) based photoshop platform. Which allowed you to do some things, edits, colour correction etc.

I will look into this further.

*cheers

mabo :-)

Post Reply