Apply Preset twice without overwriting the previous preset applied
Hi, I have a script that is applying preset of a text animator, it does that twice in two different functions.
the problem is that in the second time, it applies the preset but instead of adding an animator, it overwrites the current one. (there should be two identical animators at the end).
any idea on what to do?
this function exists twice:
var scriptFolderPath = File($.fileName).path; // the URI of the folder that contains the script file
var presetsFolder = scriptFolderPath + encodeURI(*PRESETFOLDER*); // the URI of the folder for
var presetPath = presetsFolder + "Preset.ffx";
var preset = File(presetPath);
layer.applyPreset(preset);
