Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Not getting multiple subpaths from selected shape layer

$
0
0

I'm trying to get multiple subpaths from a single shape layer with jsx, via PathItem.subPathItems. Shape layers can sometimes contain multiple subpaths, depending on the Shape. For instance, the letter "O" contains two subpaths, the outer ring and the inner ring.

 

This works if the shape is manually created with the pen tool. But it doesn't work when this character is converted to a path from a font. In this case, Photoshop only returns the outer path and I see no way to get the details of the inner path.

 

I have a very concise example psd + jsx file that can be downloaded here (link will be active for the next couple of days, but will update it if needed): WeTransfer

 

I hope my problem is clear. Has anyone else encountered it and, even better, does anyone know a solution?


Viewing all articles
Browse latest Browse all 12244

Trending Articles