Re: referencing the art-tree for any given layer in Adobe Illustrator CC 2015
Re: referencing the art-tree for any given layer in Adobe Illustrator CC 2015
- Subject: Re: referencing the art-tree for any given layer in Adobe Illustrator CC 2015
- From: Shane Stanley <email@hidden>
- Date: Mon, 30 Nov 2015 16:56:40 +1100
On 30 Nov 2015, at 3:35 PM, Alastair Leith <email@hidden> wrote:
>
> i’ve been able to get close to it this way:
>
> targetLayer = sourceDoc.layers [i];
> objectsOnLayer = sourceDoc.layers[i].pathItems;
> if (targetLayer.visible ) {
> msg += targetLayer.name + ' ';
> msg += objectsOnLayer .length+ '\r';
> }
So what you want is the length of the pageItems collection. But you're not allowing for the fact that layers can also contain other layers.
> Apologies, I meant paths that have a brush applied. They are all single point paths with little check mark icons made by applying a brush to the path.
Good luck distinguishing them from any other paths.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden