Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Browsing all 27456 articles
Browse latest View live

Re: Removing number sequence in 'Export layers to files" in CS5

For PHOTOSHOP CC 2014 - September+ I took out the whole Prefix and just replaced "FileNamePrefix;" with "layerName;". Then commented out the other two lines with // (Double slashes)       1020...

View Article


Image may be NSFW.
Clik here to view.

Re: How do I find the font for a specific character in a textItem?

I can't quite figure out the try for this, I've wrapped this in a few ifs as well, which as my knowledge of PS scripting, and Javascript isn't vast at this point, may seem like terrible ideas, but...

View Article


Re: How do I find the font for a specific character in a textItem?

try {var aFont = styleDesc.getString(stringIDToTypeID('fontPostScriptName'))}catch (e) {var aFont = /* insert your default font here */}

View Article

Re: How do I find the font for a specific character in a textItem?

That worked! And makes a heck of a lot more sense, now that what I was trying to do now that I see it. Could've saved myself a lot of time on that one, but I wouldn't have learned what not to do, which...

View Article

Image may be NSFW.
Clik here to view.

Re: How do I find the font for a specific character in a textItem?

You’re welcome.

View Article


Re: How do I find the font for a specific character in a textItem?

Last question. I have this nested in a for loop, that grabs layers from a predetermined LayerSet. From there I'm incrementing the loop to address the next layer, which is working for text contents,...

View Article

Re: How do I find the font for a specific character in a textItem?

Please do not use the same variable name in a for-clause and a contained for-clause, use another letter in the overarching clause or change it in the contained clause.

View Article

Re: How do I find the font for a specific character in a textItem?

Sorry for the confusion, I'm not actually using the last for loop in the code you provided, as I already had built a function to do this very thing. I'm using the snippet from the "var ref" line to...

View Article


Re: How do I find the font for a specific character in a textItem?

Then I don’t understand what the issue is, could you post the code?

View Article


Re: How do I find the font for a specific character in a textItem?

It got rid of my formatting, so it's a little harder to read, but fairly straightforward. Basically the parent for loop finds layers within the layerSet 'quoteLayer'. This is successfully grabbing...

View Article

layer group visibility toggle

With the help of this forum I obtained a script  which toggles the visibility of a specific layer without  selecting the layer. I would like to find out if the same functionality can be achieved for a...

View Article

Re: layer group visibility toggle

As far as AM code is concerned Groups are Layers, too, so what is the problem?

View Article

Delete anchor point(s)

I see that the Script Listener doesn't pick this up; but is it possible to delete the currently selected anchor point (path) using Photoshop Scripting?

View Article


Re: layer group visibility toggle

And if you're talking Javascript, you have the LayerSet.visible for that. Just remember you have multiple ways of going through a documentArtLayer is the thing called "layer" in Photoshop, i.e....

View Article

Re: layer group visibility toggle

I have a script that does what you need. Can't remember if I obtained it from here, but I do know that the scripting guys in here are geniuses and can help you out with almost anything. That said, here...

View Article


Re: Delete anchor point(s)

I just created a complex  path with many overlapping ellipses then selected many of the segments in the path.  Enabled the scriptlistner and then delete the selected path segments using the delete key...

View Article

Re: Re: How do I find the font for a specific character in a textItem?

If quoteLayer is a LayerSet wouldn’t it have to befor(n=0; n<quoteLayer.layers.length; n++){  if(quoteLayer.layers[n].kind == LayerKind.TEXT) {?

View Article


Can I add a click tag to a moving gif in photoshop

Please help!!!!!

View Article

Re: layer group visibility toggle

No worries, I realize it was for layer when I skimmed the script. Strangely enough it works  with layer groups also.Thanks!

View Article

Re: layer group visibility toggle

Thanks for the clarification. I looked up the layer groups in the object document model and found the terminology for a layer group confusing.

View Article
Browsing all 27456 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>