Adding Layer Style

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

July 28th, 2014, 9:27 am

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.
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

July 28th, 2014, 10:12 am

I found you could add a specific layer style by executing a commandID.

http://forums.creativecow.net/thread/227/19122
becofuan
Posts: 2
Joined: December 29th, 2014, 2:00 am

December 29th, 2014, 6:53 pm

Here's a reference for you: viewtopic.php?f=8&t=889
Post Reply