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

Re: Is it worth it for me to learn scripting in PS?

BBedit will be fine. I tried it out years ago, used it a bit, and liked it. Then I found a reasonable emacs port and never looked back.

View Article


Re: How to get event target?

Thank you for your reply!  This is exactly what I was hoping to find!

View Article


Re: How to get event target?

Okay, I'm stumped again.  Your code example was very clear but I'm still confused on how to get artlayer object itself. I'm coding this script for a client that works in construction.  They want a .PSD...

View Article

Re: How to get event target?

All the event descriptor has is the name of the layer hidden.  If your layers have unique names and are on the top level you can use document.layers.getByName(); If the names are unique and could be in...

View Article

Re: How to get event target?

That is certainly strange!  It seems that there should be a guid for every object in Photoshop.  I can certainly make each layer name unique but I was hoping for a more direct access approach. Thanks...

View Article


Re: How to get event target?

And what about this?  From the code you gave me,  [alert(ref.get name());] returns empty if the 'hide' action is generated by the top most layer.  Every subsequent layer works fine!

View Article

Re: How to get event target?

Action Manager does not have direct access to objects in the Object Model. It has it's own classes and object. Sometimes there can be a more direct access than by name. If the event descriptor had the...

View Article

Re: How to get event target?

Thanks again for your helpful information.  I'm going home for the day but do you know if I can manipulate the DOM using JavaScript functions such as [OnClick()]?

View Article


Re: How to get event target?

Not in the way I think you mean. Documents, Layers, etc. don't have onClick events. Some ScriptUI controls have onClick events and you can use the Object Model inside those event handlers.

View Article


how to conclude a multi-line text on the panel ?

Hi !I want to place on the panel multi-line information. Which element can be used? 10 elements statictext do?

View Article

Re: how to conclude a multi-line text on the panel ?

See Peter Kahrels scriptui-1-5.pdf on page #8 and following

View Article

Re: how to conclude a multi-line text on the panel ?

Set the multiline creation property to true.var dlg = new Window( 'dialog', 'Example' );   dlg.stMultiLine = dlg.add('statictext', undefined, 'one\rtwo\rthree\retc.',{multiline:true} );   dlg.btnPnl =...

View Article

Re: Is it worth it for me to learn scripting in PS?

If your like me you don't want to write script that can be done with an action for actions are easy scripts are not why write that script. You want to automate thing that can not be automated with an...

View Article


draw line between black pixel : coordinates of selected pixels ?

HiI want to build a script which can check a Photoshop file and :- find black pixel- for each black pixel, look for another black pixel within maximum distance of 5 pixels- then draw a line between the...

View Article

Re: draw line between black pixel : coordinates of selected pixels ?

I think this task will be slow using javascript no matter how it is done. You could use select color range to select the black pixels. But the selection bounds would include all the black pixels. You...

View Article


Re: draw line between black pixel : coordinates of selected pixels ?

Michael L Hale a écrit: From the path you could get the x,y position of each subpath point to get the bounds of each pixel.Thank you for your proposition.How can I get the x,y position of each subpath...

View Article

Re: draw line between black pixel : coordinates of selected pixels ?

As I said, I didn't test this approach. I can't get Photoshop CC to convert single pixel selections into a path even when setting the tolerance to its minimum value. Are you sure your converted path...

View Article


Re: draw line between black pixel : coordinates of selected pixels ?

Thank you for your script, now I can get coordinates of the first pathPoint.anchor from each subPath and not only from the first subPath.To be perfect, I would like get coordinates of the entire...

View Article

Re: draw line between black pixel : coordinates of selected pixels ?

The first alert should have shown the first pathPoint.anchors for all the subPaths in the path. The xyArray is just something I added for the alerts. The array 'myPathInfo' should have all the info...

View Article

how to convert pixels in mm ?

Hello everybody!I'm making a tool in which the user specifies the size of the frame, I want to give him the opportunity to choose between units of measurement. How do I convert one unit to another?...

View Article
Browsing all 27456 articles
Browse latest View live


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