New scripted patterns in cs6

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

simo

New scripted patterns in cs6

Post by simo »

Hi all,

I've posted the following on the Adobe forum but to no reply, hence also trying here.

I've been enjoying trying out the new scripted fill options for creating custom Pattern tiling in Photoshop CS6, which I'd like to customise further. There's some sample scripts in the Application / Presets folder, and changing some of the variables seems straightforward enough, but I can't seem to find any reference in the scripting documentation to some of the code used in the scripts - in particular, references to a Render.API and it's properties. Is any of this online somewhere ?

On a related point, could the script also be changed to fill using more than one Pattern preset from the Library ?

Thanks

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

csuebele

New scripted patterns in cs6

Post by csuebele »

While the scripts for the fill are javascript they do not recognize most PS commands and as such are very limited. I've created a UI for these scripts, which makes using them easier. Xbytor gave me the great idea about creating a dynamic script that rewrites the script from the UI and then runs the dynamic script. At this time, you can not change the pattern from within the shipped fill scripts. I asked the Adobe engineer about this right away and was told that it was not possible. So my solution to this was to create a loop in my ui script that would only render patterns based on input I selected, so that I could rerun the script several time and change the patterns. This worked with most of the script other than the symmetry fill ones. By creating a seeded random number, I got a random pattern that I could repeat and apply the fill several times. There is some documentation, but I'm not sure if Adobe has release it for public use outside of their beta test yet.
For some samples of what I've done with the fill, you can see them here: https://plus.google.com/photos/10375355 ... 1894199377

To download my script and instructions you can get them here: http://uebelephoto.com/CS6_Fill.html
csuebele

New scripted patterns in cs6

Post by csuebele »

Let me check with Adobe to see if it's okay to share the documentation. One other thing that's helpful: the command Engine.message() is like the alert() command. Great for trouble shooting.
csuebele

New scripted patterns in cs6

Post by csuebele »

I got an okay from Radomir, the engineer who created the fill scripts, to release the programming notes. I tried to attach the file, but it's slightly over the 2mb limit, even zipped. PM me your email, and I will send it to you.