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

Re: Getting selected layers by script (object refs, not indices!)

Hi c. pfaffenbichler  I have through the same question What exactly do you want to do with the selected Layers?

View Article


Re: Re: C# .NET Photoshop.Application.togglePalettes()

It looks as if you are correct, it doesn't seem to be available in CS6 for me either, what does work is to send a JavaScript Call via COM, maybe you could use that?  ps.ApplicationClass app = new...

View Article


Re: C# .NET Photoshop.Application.togglePalettes()

So then this seems to be confirmed. I also checked back with the auto-generated Python module I have found if this function is available there for COM, but it isn't.I guess the way to do it is what you...

View Article

Re: Getting selected layers by script (object refs, not indices!)

This would for example select each one of the originally selected Layers in turn. One could use that as a starting point for some DOM operation but maybe one could instead stick with Action Manager...

View Article

Re: general photoshop error translating layer

add aLayer.positionLocked = false;this is running ...read this article

View Article


Image may be NSFW.
Clik here to view.

Re: Getting selected layers by script (object refs, not indices!)

Firstly, thanks for the fast responses! To clarify my question - the getSelectedLayersIdx() above gives a list of integers that appear to be some kind of internal ID and are not necessarily sequential...

View Article

File information for smart objects

I need to get some information for the smart objects in PSD file using PS scripting.1. I need to get the file path for the smart objects in a PSD. I found that for linked smart objects, the file path...

View Article

Re: File information for smart objects

Also, for embedded smart objects is it possible to get the file path?What file path?Embedded SOs are just that, embedded in the containing document and are written to disk only when opened as temp files.

View Article


Re: File information for smart objects

I was wondering if we have any reference to the file from which the embedded SO was created, which prompted my question. I get it now that it is no longer available once the file is embedded. Thanks...

View Article


Re: Getting selected layers by script (object refs, not indices!)

This uses the other file’s name ("aaa" in this case), using an index for that, too, may be preferable to avoid problems (in case more than one open file has the same name for example), but maybe it...

View Article

Re: File information for smart objects

I’ve used this to try and find a distinction between embedded and linked SO, but so far no luck. #target photoshopif (app.documents.length > 0) {var ref = new ActionReference();ref.putEnumerated(...

View Article

Image may be NSFW.
Clik here to view.

Re: File information for smart objects

Seems the paths are stored in the document’s XMP Metadata.

View Article

Re: File information for smart objects

Thank you so much for your time and prompt responses. I noticed too that the paths are stored in the XMP metadata. But the problem I am facing is mapping these paths to the SOs in my layers.E.g I have...

View Article


Re: File information for smart objects

Comparing the fileReference String with the paths in the metadata is the closest I noticed – but it would not work in all possible cases, as a linked and an embedded Smart Object may have the same...

View Article

While changing text item contents, text item size automatically change.

For example : I have text with size 53,14 pt, script change content, and text size is 30 pt. Does anyone have any idea why is this happening ? Even when I try alert(layer.size); it will show 30pt....

View Article


Changing text item content automaticallz changes text size.

For example : I have text with size 53,14 pt, script change content, and text size is 30 pt. Does anyone have any idea why is this happening ? Even when I try alert(layer.size); it will show 30pt....

View Article

Re: Changing text item content automaticallz changes text size.

Does the Typelayer contain text of varying sizes?

View Article


Re: Changing text item content automaticallz changes text size.

No, there are more text layers, each with a different text size, but text in one layer has one size.

View Article

Re: File information for smart objects

Also remember some embedded object may have no association with any file till the current document is saved. Or a temp file for working on it is created by Photoshop.  For example you open a new...

View Article

Image may be NSFW.
Clik here to view.

Re: Changing text item content automaticallz changes text size.

I added the two variable sets that were missing in the code you posted. Created a text layer named odbor 53.14 pt and ran the script the new text was 53.15pt.//function generated from actioncTID =...

View Article
Browsing all 27456 articles
Browse latest View live


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