Page 1 of 1

Changing the names of effects via JSX

Posted: May 31st, 2005, 5:08 pm
by ndeboar
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

Posted: June 1st, 2005, 3:49 pm
by davestewart
Yo...
Try this syntax instead:

Code: Select all

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