photoshop

in extendscript - Photoshop, dialog-box persistence?

笑着哭i 提交于 2021-01-29 04:15:09
问题 in extendscript - Photoshop, I would like my dialog-box check boxes to default to previously used choices ... anyone know if this is possible? 回答1: You have two choices. First choice: Using a //@targetengine Values can be made persistent over a session using a targetengine. First script //@targetengine myengine var x = 100; Second script //@targetengine myengine $.writeln(x); If you close Photoshop all of the values will be lost Second choice: Write to a file. I wont write an example here.

Photoshop rename to layer name

故事扮演 提交于 2021-01-28 07:01:14
问题 I need a script to choose a folder, open the Photoshop files in the folder, then rename the files to the current name of layer plus the file extension. (Each of the layers will be named differently as the images have been created with a data merge. All I have so far is opening one image and getting the layer name, I can't figure out the repeat and the rename of the file: set inputFolder to choose folder tell application "Finder" set filesList to files in inputFolder set myDoc to item 1 of

Python win32com - application installed with both 32bit and 64bit versions

心已入冬 提交于 2021-01-28 03:24:26
问题 I am using pythons win32com module to automate Adobe Photoshop. This works fine on some machines (have had issues with it not working on users with limited windows account permissions, but thats another issue). But on machines with both the 32bit and 64bit versions of Photoshop installed, I am getting errors when trying to access com objects, not the Photoshop.Application object itself, but Photoshop.PhotoshopSaveOptions, and Photoshop.SolidColor com objects. The error I get is Server

[ExtendScript]Change font color, size of certain word in text layer

我怕爱的太早我们不能终老 提交于 2021-01-27 10:55:10
问题 I want replace font color and weight and size of certain word in text layer. For example: I want <b>THIS</b> look different and <b>this</b> as well. My plan was replacing every characters' color between <b> and </b> then "<b>" and "</b>" to be removed. First of all, I'd like to know that changing colors and size of certain words in a text layer would even be feasible. Another thing is, even if I somehow manage to change font color in a text layer and then remove <b> and </b>, font colors

How can I convert layer to smart object in Photoshop?

懵懂的女人 提交于 2021-01-27 05:11:12
问题 This script converts the active layer into a smart object: createSmartObject(app.activeDocument.activeLayer); function createSmartObject(layer) { var idnewPlacedLayer = stringIDToTypeID( 'newPlacedLayer' ); executeAction(idnewPlacedLayer, undefined, DialogModes.NO); } My question: Is there a shorter way to code this? 回答1: createSmartObject(); function createSmartObject() { var idnewPlacedLayer = stringIDToTypeID( 'newPlacedLayer' ); executeAction(idnewPlacedLayer, undefined, DialogModes.NO);

Photoshop export gradient ( .grd files )

↘锁芯ラ 提交于 2021-01-27 04:26:46
问题 I'm trying to write a tool for converting photoshop gradients to css gradients using sass/compass. From what I've read the .grd is a proprietary format for which documentation is not available. Would the built in scripting be able to get at this info? EDIT : here is a link to the scripting docs (I couldn't find anything) EDIT 2 : http://www.tonton-pixel.com/blog/photoshop-scripting/json-sample-scripts/parse-gradients-file/ 回答1: If you don't mind the command-line, then cptutils can do this. If