Re: photoshop path operations read only?
Re: photoshop path operations read only?
- Subject: Re: photoshop path operations read only?
- From: Stan Cleveland <email@hidden>
- Date: Wed, 17 Aug 2011 12:03:39 -0700
On Aug 17, 2011, at 3:37 AM, Håvard Graudo wrote:
> I am not able to change some settings on paths in photoshop. Ie. I want to change the path direction of a subpath to 'shape xor'.
>
> When I look at Photoshops dictionary for 'sub path info' it lists 'operation' as a get/set value:
>
> sub path info:
> operation | get/set | sub path info operation
>
> The choices given for 'sub path info operation' are: shape add, shape intersect, shape subtract, shape xor
>
> I can *read* the operations value OK, but I am not able to change it.
> I get no errors, PS just ignores me. Am I doing something wrong or is Photoshop treating this as a read-only value?
>
> This has been so in CS3, CS4 and CS5. I have not tested CS5.5
>
> Is there another way of doing this?
Hi Håvard,
There are two ways to access sub paths, as follows:
set op1 to operation of sub path item 1 of path item 1 --> shape intersect
set operation of sub path item 1 of path item 1 to shape xor --> "Property is read/only..."
set op2 to operation of item 1 of entire path of path item 1 --> shape intersect
set operation of item 1 of entire path of path item 1 to shape xor --> "Can’t set operation of..."
Interestingly, each gives a different error. This is where the Explorer capability of Script Debugger comes in handy. In both cases (in CS4), despite what the dictionary says, Explorer shows the 'operation' property as read only.
I think you're out of luck.
Stan C.
_______________________________________________
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