Skip to main content
Participating Frequently
September 17, 2022
Answered

Reordering effects in Effect Parade

  • September 17, 2022
  • 1 reply
  • 1047 views

I'm working on a script that duplicates a layer many times and adds a "set matte effect" to the new layers. I'm also copying all the effects from the source layer and pasting them to the new layers using the executeCommand method. I would like to have the set matte to be the first effect so that dropshadows etc would work correctly. Even when I add the set matte in code first and then do the paste executeCommand, the set matte effect ends up being the last effect. Is there a fix for this? Or is there a way to reorder the effects in the Effect Parade? PropertyIndex doesn't help as it is read only. 

 

Thanks! 

 

This topic has been closed for replies.
Correct answer Dan Ebberts

If you have a variable pointed at your Set Matte effect, I think you can use:

myEffect.moveTo(1)

 

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
September 17, 2022

If you have a variable pointed at your Set Matte effect, I think you can use:

myEffect.moveTo(1)

 

VarianttiAuthor
Participating Frequently
September 18, 2022

That works pefectly. Cheers!