Changing the names of effects via JSX

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
ndeboar
Posts: 8
Joined: April 17th, 2005, 8:39 pm

Hey,

How do you change the names of effects via JSX? My script creates a couple blurs on a layer, but I can only control the first one ("Gassian Blur") and not the other eg "Gassuian Blur 1". Even when i try:
myLayer[0]("Effects")("Gaussian Blur 1").blurriness.setValue(50);
It returns an error!

Any ideas?

Cheers,

Nick Deboar
Digital Director
http://www.thepra.com.au
davestewart
Posts: 114
Joined: March 10th, 2005, 5:50 am
Location: London, UK
Contact:

Yo...
Try this syntax instead:

Code: Select all

layer=app.project.activeItem.layers[1]
layer.Effects["Gaussian Blur 1"].blurriness.setValue(50); 
Dave
Post Reply