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

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

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

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