There's a mistake in your code, which prevents the value from being set.
Are you running this code from the JS Console? If so, what happens when you run it?
Edit: There's more than one mistake, actually...
I test it by executing an action that executes JS code. All of these lines of codes are validated by what I read on the Adobe JS documentation
When I execute it, everything works out but for the defaultValue and the fillColor. I have been trying to test what makes it go wrong by placing a specific line at different spots but to no avail
1 person found this helpful
Make the change I described to the preferences and then run the code from the JS Console. You'll see the errors I'm referring to.
I am quite happy, I resolved everything in just a few minutes with that neat console. The problem is that I was using a possibly outdated guide or one that required extra things installed.. I am able to flatten it properly. Thank you