How to get stroke color and size of rectangle?
Hi All, I am developing an extension for CS5 and above (including CC version). I want to get the stroke color and size of a rectangle. I was able to do so in CS5. But, I noticed that in the CC version,...
View ArticleGenerating an alpha channel for document
Hi.I'm trying to generate an alpha channel based on the transparency of all the layers in the document.I usually do this manually by going into Image->Calculations, selecting Transparency in the...
View Article"Make frames from layers" & ScriptListener
In the Timeline window for animations, there is a flyout (?) menu, one of the options is "Make frames from layers". I would like to use this action in a script that i'm making, but can't capture it...
View ArticleI need js global vars in PS-64bit CS6, but they aren't staying in memory.
I have read that global vars in Photoshop are only kept in memory if they are defined in a startup script, but I have found that the App Start event 'Ntfy' doesn't seem to qualify as a startup script...
View ArticleHow to filter Prototypes from .toSource() output?
Hello,I need to write objects in a File, say that I have for instance: var obj = { num: 1, date: new Date(), arr: ["a", "b"]}; What I use to do is to stringify it first: var strObj = obj.toSource();...
View ArticleBatch-action for 2 images in a set
Hi, I created a nice action which helps me to work on 2 (currently loaded) images in combination. Now I would need support on how to apply this existing and successful action in a AUTOMATE/BATCH...
View ArticleBatch HDR creation script
I have created a Photoshop Script (using JavaScript) for batch creation of HDR images.I have used theseprevious discussions during implementation. In the beginning part of the script there are some...
View Article[PC / Mac] Modal vs. Non-modal ScriptUI windows issue
Hi,in Photoshop ScriptUI 'dialog' Windows are supported (they're modal windows), while 'palette' Window's behavior is peculiar (they're non-modal, and as long as there's something going on in the...
View ArticleTearaway Brush Size
Does Photoshop Scripting or the SDK allow access to the angle or roundess features. I was hoping their was a tear away window that strictly shows only the Angle & Roundness Window without having...
View ArticleHow to apply random "random seed" value to multiple images
So, I am in a weird situation, have been surfing the net for the solution for over a day now and can't really find the solution. What is it?Its a small school project which I have chosen and cant...
View ArticleHow to rename a Ps-path
I need to rename a Photoshoppath (only one path in file but with different names) with Javascript, I cannot select a pathitem and then rename. There are only two pathnames in my files: Path1 and Pad 1,...
View ArticleFind Visual Centre of an image
Not sure if this is possible, maybe with some maths? So possibly via applescript. I have a layer that is this is neck piece that you see, and you can see that the extension change makes the centre,...
View ArticleChecking if layer has smart filters
Hi, I'm just starting out with scripting photoshop and what I'm trying to achieve right now is to write a script that iterates over all the layers and turns off smart filters if they have them. I...
View ArticleEnable disable layermask of current layer
Is it possible to enable or disable a layer mask with Applescript?Or is it possible with javascript?
View ArticleDuplicate Layers to new composition? Weird problem with duplicate() command.
So I am trying to write a script that grabs selected layers and throws them into a new document that matches the origional. But something strange is happening when I use duplicate several times in a...
View ArticleSelecting Only Visible Layers
I am a beginner scripter trying to find a way to hide all the layers in a document. The document has hundreds of layers so selecting all and then hiding all takes way too long to run. Is there a way...
View ArticleScript and Trial Period
Hello, A friend asked me a question. Is it possible to make a script being used for a certain period of time ? Like a trial Version ?He writes script and shares them but he would like those scripts...
View Articleextendscript debugging with photoshop? is this possible?
Just starting to use ExtendScript (v3.8.0.12) to write a script for Photoshop CS6. When I run the script in ExtendScript I can an error "Result:undefined" when I hit the first line of code that...
View ArticleHELP NEEDED!! batching, overlaying, background cut out
Hi All, very new to this. I have 2500+ images (caracitures of cars on white backgrounds). I need to place ALL of them on to a BLACK tee shirt image for internet listing.So, how do I do this...
View ArticleHow can I export the number of pixels of each layer into an excel file?
I would like to export the number of pixels that each layer of an image contains into excel. How can I do this?Secondly, as I need to do this with several images, is there any way to name the layers so...
View Article