THANK YOU Paul... it works beautifully! Feels like Christmas this morning! Putting the script into a sweet little action makes my path-heavy photoshop work feel like it's in the 21st century. The one for channels will be quite useful too.
Maybe this is not the place to post this, (start a new post?), but while I know that expert Paul Riggot is following this thread I have another question about scripts.
Is it possible to make a square / rectangular selection and have a script add guides to the four sides of the selection?
On most all photographs I shoot I put cropping guides for the client to see what I / we were visioning at the time of the shoot for cropping. I make a marque selection or use the crop tool to crop the image. Then I drag out 4 guides to place around the selection / crop. I deselect or cancel the crop which leaves me with the 4 cropping guides.
This is an often repeated process. I wish I could have a script or something that would put the 4 guides around the selection.
Paul....
"Nice easy One"????
you make me laugh (lol)
I heard Einstein said the same thing when he was asked about he came up with the concept of the "Theory of Relativity".
I'm blown away. I may as well be trying to read Chinese.
The script works perfectly. I can't help but just shake my head....
I've been wishing I had this for years. I thought it was a crazy thing to even ask Adobe about. And here by chance I come across this posting and find that you have solved three issues I've been struggling with.
Thank you hardly seems adequate.
I had no idea that being able to write scripts was so powerful and useful.
If I had it in me to learn how to do this (not sure I do), where would you suggest I go to for clear "how to" instructions.
Thanks for everything. How do I add points to your profile?
You deserve something!!
Guys look What I found... you know.. if you make a lot of path you can group it example :(grouping path 2 & 3 into path 1) by first select path 2 > Ctrl+C then select path 1 then Ctrl+V ...then select path 3 Ctrl+C then select path 1 Ctrl+V. simple as that.. well at least if you have 3 path 😛 owh yeah with Mac ofcourse you would use Cmd+C and Cmd+V that's a shortcut for copy & paste. happy pathing~ :)
// supress dialog windows displayDialogs = DialogModes.NO
// delete ALL paths, including PathKinds of WORKPATH, NORMALPATH, CLIPPINGPATH & VECTORMASK doc.pathItems.removeAll();
// delete ALL alphas, including SPOT CHANNELS doc.channels.removeAll();
// delete layercomps doc.layerComps.removeAll();
// delete color samplers doc.colorSamplers.removeAll();
// delete guides doc.guides.removeAll();
I’m not sure how to exclude SPOT CHANNELS or VECTOR MASKS or CLIPPING MASKS...
As a retoucher I use paths a lot. When my images are done I use Image Processor to export the images with a flatten action. After doing this I currently have to go into each image and delete all the paths individually on every image. It would be lovely if a "Delete All Paths" option would be available, so I also could record it do an action and process them out while drinking coffee.