Skip to main content
Inspiring
July 22, 2013
Question

Can I have my Custom Effect settled separately from PresetEffects.xml?

  • July 22, 2013
  • 1 reply
  • 1019 views

Does Adobe After Effect have any Environment Variable pointed to custom .xml file, different from PresetEffects.xml?

That would be great not to edit original PresetEffects.xml but keep my own .xml and only point After Effect to use this file too.

This could help a lot, for example:

I have my custom effects xml file, scripts etc in my own folder.

I don't need to setup every user machine. Only thing that I need is to copy folder to user machine and run my Launcher that will set Environmet Variables and run After Effects.

Profit!

This topic has been closed for replies.

1 reply

Legend
July 24, 2013

The PresetEffects.xml file can contain new custom entries for custom effects, but AE cannot look to a different file for the info as far as I know. For some of my custom effects related scripts in the past I've duplicated the PresetEffects.xmlfile as a backup version before appending my effects via scripting to the original. It is annoying to have to alter all machines that will need the effects, but it is possible at least to do it via your script which helps.

Inspiring
April 13, 2016

Hi

David > What kind of scripting do you use to add to the presetEffects.xml?

Thanks,

Jakob

Legend
April 15, 2016

If you've never done document creation or modification before through ExtendScript it can be difficult as there are a number of variables to encounter. Also the chance for deleting a file or worse a directory. I've done that before when learning. Was not a fun lesson. There is no warning to proceed, and no undo for it.

The PresetEffects.xml scripts I had made were in a closed environment, so I could easily fix hurdles I ran into. Hurdles like handling file permissions. I did that manually, and not by script. I'm sure it's possible given enough system command knowledge, but outside my knowledge scope. The other was Win vs Mac file path differences, something I did manually at the time too.

These steps pretty much should be separate functions to do the one task to make life easier.

The basic process:

- Verify the PresetEffects.xml files exists so you know you have the right file path and file.

- Duplicate the file and rename that so you have a backup of some kind if things go south.

- Read original document contents

- Verify contents to make sure your effect doesn't already exist. Usually a Regular Expression to find your effect match name in the contents.

- If is doesn't exist then append your effect text to the document, making sure you place it at the end of the document, but not after the last closing Effects tag, just before it.

- Relaunch After Effects and hope all goes well.