ExtendScript: Changing a value that I can't believe is read-only
I must have missed something here.
Essentially, the script I'm working on is supposed to add "Offset Path" to a shape layer and change the "Amount" value depending on it's stroke width. I'm getting an error, saying that this particular value is read-only and can't be changed, which I'm having a hard time believing. Why would I not be able to change this value?
The error happens at line 77, which currently just shows the value of "Amount" in case there already is an "Offset Path", which the script can already add. I would like to be able to change this Amount to something like 20 at first.
Thanks in advance for your help and time
Would you please specify the structure of the Shape Layer you run this on. Cause it works just fine for me and I can't recreate the error.
I made the mistake of trying to change the value by just typing in offset.value = 20 instead of offset.setValue(20). Perfect reply, now I know exactly how to continue. Dan gave me a perfect answer in the Adobe forum, where I asked the question as well.
Thanks a bunch!