Skip to main content
mistikde
Participating Frequently
January 20, 2017
Answered

how do I apply a pseudo effect to a layer from a script?

  • January 20, 2017
  • 2 replies
  • 4353 views

Hey guys I have seen a few scripts that apply custom pseudo effects on layers. can anyone help me as to how that was done?

This topic has been closed for replies.
Correct answer Tomas Sinkunas

Hi buddy. It's rather easy.

1. Apply Pseudo Effect to a layer.

2.Select this effect in timeline (make sure no other properties are selected) and save Animation Preset by going Animation -> Save Animation Preset.

3. In JavaScript script, select a layer you want to apply Pseudo Effect on and do

layer.applyPreset(File("pathToFFXfile"))

If you want to be more fancy about it, take a look at this snippet Apply Pseudo Effect as Animation Preset — Bitbucket

Hope that helps.

2 replies

Participant
April 12, 2017

I'm curious, will this 'fancy' method take care of the "Missing:" warning in cs6 and earlier?

Roland Kahlenberg
Legend
April 26, 2021

The "Missing" message for a pseudoFX, for CS6 and earlier, was hardcoded to the app. The only way to prevent the "Missing" message was to first edit the PresetEffects.xml file, to point to the pseudoFX.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Tomas Sinkunas
Tomas SinkunasCorrect answer
Legend
January 20, 2017

Hi buddy. It's rather easy.

1. Apply Pseudo Effect to a layer.

2.Select this effect in timeline (make sure no other properties are selected) and save Animation Preset by going Animation -> Save Animation Preset.

3. In JavaScript script, select a layer you want to apply Pseudo Effect on and do

layer.applyPreset(File("pathToFFXfile"))

If you want to be more fancy about it, take a look at this snippet Apply Pseudo Effect as Animation Preset — Bitbucket

Hope that helps.

mistikde
mistikdeAuthor
Participating Frequently
January 21, 2017

the fancy way is exactly what i needed thanks so much. one last question how do you convert the ffx file to binary. when i open it in a text editor it gives me weird symbols and isnt legible.

Alex White
Legend
January 22, 2017

I've posted a script here that will help you to convert ffx to binary.