What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Crazy question - Horw to get count of path anchor points?


SeniorS

Guru
Messages
1,747
Likes
520
Hello!

I've got crazy question. How to get count of path anchor points?
I'm pathing right now pearl necklace with very diferent colors and some are almost transparent so i didn't know how to use any masking trick on it.
So i'm pathing, pathing and pathing one more time. And after 1+ hour start to wondering is there any way to know how many path points i'd made? :)

Just curious. Maybe someone have done sothing like that (i mean "counting") in PS or Il or elsewhere form PS file.

P.S. Google are total useless for that question.
 
short of using the count tool as you go along,I'm not aware of any counting ability ps has for that........ but good idea for next version!
 
Thanks but no...counting by hand would take almost same amount of time as pathing itself :)

Maybe some printing/separator software can do that?
 
HMMMMM been looking........ sorry nothing I can find, but sure sounds like it should be possible
 
Thanks for trying.
Search not worked for me too. It just throwing path manuals, tutorials and everything else but what i need, not even close.
 
How about a script to get the info :)

Code:
#target Photoshop
main();
function main(){
if(!documents.length) return;
try{
var Info = '';
var workPath = app.activeDocument.pathItems.getByName("Work Path");
for(var b =0;b<workPath.subPathItems.length;b++){
    Info += "Sub Path "+b +" Closed = "+workPath.subPathItems[b].closed;
 Info +="\rSub Path "+b+" has " +workPath.subPathItems[b].pathPoints.length+ " Pathpoints"+"\r";
    }
alert(Info);
}catch(e){alert("Unable to get path info");}
}
 
How do you do that Paul MR............those scripts you come up with are just amazing!
 
oh damn..........I think it's time to read that sucker! (if I still have it) lol
 
what's the pdf called or where is it located?
 
On a Windows 64 bit system the doc are found in the following folders :-
C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Scripting\Documents
or
C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Scripting\Documents

Or you can start ExtendScript toolkit and look at the help Object Model Viewer (F1)
There should be plenty of reading to go on with.
A young man like yourself should have no problem :)
 
I meaned it in a good way.
Don't say it didn't make you smile.

Anyway, i just said in other post that we here are mature....lol ... mature my *... :bustagut:
 
I meaned it in a good way.
Don't say it didn't make you smile.

Anyway, i just said in other post that we here are mature....lol ... mature my *... :bustagut:
I'll smile all the way to the next AW chop LOL. it did make me laugh I fib not! lol
 
good thread y'all.
Sometimes I feel like a total newb (not a noob hopefully, though I just give up with most computer programming, having tried a course in C++ unsuccessfully). I think I'm too "mature" to learn much of it! Even automation in PS gives me a headache.

:banghead:

I have a lot of respect for you kids out there Paul MR -- not that I know if you're a kid or not.

:mrgreen:
 

Back
Top