Page 1 of 1

Adding Layer Style

Posted: July 28th, 2014, 9:27 am
by ernpchan
What is the proper syntax to add a drop shadow layer style to a layer? The below isn't working for me.

Code: Select all

selected.layer(1).LayerStyles.addProperty("DropShadow")
Also it looks like you can apply a preset file but we can't save out a preset file? I'd like to be able to save out a layer style preset via scripting.

Re: Adding Layer Style

Posted: July 28th, 2014, 10:12 am
by ernpchan
I found you could add a specific layer style by executing a commandID.

http://forums.creativecow.net/thread/227/19122

Re: Adding Layer Style

Posted: December 29th, 2014, 6:53 pm
by becofuan
Here's a reference for you: viewtopic.php?f=8&t=889