photoshop-script

Photoshop script to ignore .ds_store

送分小仙女□ 提交于 2019-12-12 05:05:28
问题 my skills with javascript are about 0, I only know some html and css. I hope someone can still help me solving this. I am working in photoshop with a script that grabs pictures, does some magic and places them into a psd file as layers. As you might guess i haven't written the script but its needed for work. The problem is, its grabbing the .ds_store files as well as the images, which results in an error warning. this is the line that defines the source: var taschenQuelle = Folder

Dialog box - does not have a constructor

对着背影说爱祢 提交于 2019-12-12 01:25:05
问题 I'm having intermittent success with trying to create a dialogue box. The code is valid. try { // Create an empty dialog window near the upper left of the screen var dlg = new Window("dialog", "Alert Box Builder"); dlg.frameLocation = [100,100]; dlg.show(); } catch(e) { alert(e); } Sometimes it works, sometimes I get the error: Error 22:Window does not have a constructor I have no idea why. Deleting Photoshop preferences and/or running as Administrator doesn't seem to work (running CC on Win7

Photoshop Script: combine 3 images side-by-side

会有一股神秘感。 提交于 2019-12-11 23:19:44
问题 I'm needing to take a folder of about 500 1024x768 resolution images, and combine them three at a time into a solid panorama at 3072x768. (Not Photoshop's photomerge) I am by no means a programmer; just stumbled upon this site and everyone seems very helpful. I'm leaning that using a java script inside Photoshop is probably my best bet. I'll rename the source files to: Image_SD_1a Image_SD_1b Image_SD_1c Image_SD_2a ...and so on... One each three-image is built, it needs to save into another

How to identify clipping masks in Photoshop using JavaScript

江枫思渺然 提交于 2019-12-11 20:37:13
问题 I've currently butchered a script I was reading that loops through a list of layers, and then looks for layers with a certain name (3/2, 4/3 etc). The next step is to check for layer masks that are clipped to the base layer, and merge them to it. I've read through the reference docs, and can't find anything about identifying clipping masks. I've attached an image as an example of how the document is structured. And here is the code I have so far: var doc = app.activeDocument var ratios = ["1

Generating x number of pictures

空扰寡人 提交于 2019-12-11 06:36:25
问题 I need to generate pictures with a certain size (in pixels). Each picture will have an incrementing number in it. That is all that will be in the picture, a number. I've been thinking of using photoshop but I have no idea how the scripting works. Any suggestions or examples I could use? 回答1: Try using ImageMagick (http://www.imagemagick.org) and its text handling feautures (http://www.imagemagick.org/Usage/text/). 回答2: Here is a way of doing that using ImageMagick: #!/bin/bash for i in {0..3}

Turning Multiple Layers On and Off in Photoshop Script

喜欢而已 提交于 2019-12-07 14:12:15
问题 I have 6 groups in Photoshop that contain a number of layers within each group. I'm looking to turn on/off a layer within each group to create every possible combination of the image. Can someone point me in the right direction? I've never scripted in Photoshop but trying to figure this out on my own. 回答1: I'm quite new to CS5 scripting myself, but I think I can explain how it works. The code examples may not be the most effective way to do it, but it does the trick. There is a big difference

Photoshop on web server for scripts

做~自己de王妃 提交于 2019-12-06 12:54:25
问题 So, I'm trying to think of the best way to solve a problem I have. The problem is that I produce many websites for my job and as CSS3 and HTML5 introduce themselves powerful I want to eliminate almost all images from my websites. For button icons and various other things I have a sprite image with all the icons on that I just shift around depending what icon I need. What I need to be able to do is recolour this image dynamically on the web server so that I don't have to open up Photoshop and

Output Arabic/Thai text in Excel file using Photoshop JavaScript

白昼怎懂夜的黑 提交于 2019-12-06 09:57:07
问题 I have a script for photoshop which outputs the name of a text layer and layer content into Excel CSV file. It works fine if the text is english but if the text is Arabic/Thai it was displayed like this "??????". How can I display these texts properly? My script gets the layername and layer content like this: var iLayer = app.activeDocument.activeLayer.textItem; var LayerContents = iLayer.contents; Then output the names in the Excel file like this: var Names =[ ]; Names.push([LayerName + ","

Photoshop on web server for scripts

久未见 提交于 2019-12-04 22:02:30
So, I'm trying to think of the best way to solve a problem I have. The problem is that I produce many websites for my job and as CSS3 and HTML5 introduce themselves powerful I want to eliminate almost all images from my websites. For button icons and various other things I have a sprite image with all the icons on that I just shift around depending what icon I need. What I need to be able to do is recolour this image dynamically on the web server so that I don't have to open up Photoshop and recolour the icons manually. I have done some research and the only thing that I've come across that

Output Arabic/Thai text in Excel file using Photoshop JavaScript

梦想与她 提交于 2019-12-04 15:49:16
I have a script for photoshop which outputs the name of a text layer and layer content into Excel CSV file. It works fine if the text is english but if the text is Arabic/Thai it was displayed like this "??????". How can I display these texts properly? My script gets the layername and layer content like this: var iLayer = app.activeDocument.activeLayer.textItem; var LayerContents = iLayer.contents; Then output the names in the Excel file like this: var Names =[ ]; Names.push([LayerName + "," + LayerContents]); I tried changing the font style to Arial for Arabic and Tahoma for Thai, but it