QML export from Photoshop CS3 or CC
Does any one know a way to export qml from Photshop CS3?
And if CS3 is not supported; will Photoshop CC support exporting qml?
I wrote an exporter for photoshop a couple of years ago.
You can see it in action here: http://www.youtube.com/watch?v=9BRJ1qJkjZM
And the details are here.
As far as I know this should still work fine with CS3.
Thank you for the fast reply!
I have downloaded your script, but when I try to export the attached example I get this error:
Error 19: Bad argument appDialogBackground.
-> var brush =
I am afraid I don't have access to CS3 or any recent versions of Photoshop so there is not much I can do to help you but a quick google search returned this: http://forums.adobe.com/message/4244689
It looks like they removed that particular color entry. I suspect you can replace "appDialogBackground" with a specific color such as [0.75, 0.75, 0.75, 1] and get it working though.
Or simply comment out that line from the script. I don't think setting the dialog background color is required.
I changed it to: var brush = mainDialog.graphics.newBrush(mainDialog.graphics.BrushType.SOLID_COLOR, [0.75, 0.75, 0.75], 1 );
I now do get an export window and when I hit the Export button, something is actually happening.
But...unfortunately, it stops again with this message:
Error 24: textItem.size is not a function.
-> yoffset -= textItem.size.as("px")/4;
I don't know the API of CS3 I am afraid. The script was designed for CS4/5 and later. It might still work if you comment out that line of code, but your text labels will not be positioned properly.
Thanks again Jens!!
It runs without error now :)