A script I'm working on adds a few control effects to a layer.
For aesthetics, I'd like them to be added as a Pseudo Effect. Is there a reliable way to do this in Extendscript that doesn't require the user of the script to fiddle around in some deep down XML files?
I know there's extendscript syntax supporting XML (new XML()), but afaik it's mostly focussing on creating/reading/writing XML files as a way of exchanging data.
Help is much appreciated.
Thanks alot in advance,
Hey Alex, thanks for your response!
I've actually used that plugin before – either I'm missing something or I didn't phrase my request correctly, sorry.
Is there a way to create a Pseudo Effect from within a script, like you would add an effect? like: mySolid.property("Effects").addProperty("ADBE Slider Control")
For a script to be able to add a pseudo effect with addProperty(), the effect needs to be defined in the PresetEffects.xml file. Your script could check that file to see if it's in there, add the XML code if it isn't, save the file, restart AE, then add the effect (of course you'd probably have to save a temporary copy of the current project so you could restore the context after restarting AE). Quite a pain actually.
I generally do all that by hand on my system, add the effect to a layer, and save the effect as a preset. Then my script can just add the preset to a layer without the pseudo effect having to exist in the local PresetEffects.xml file. Much easier.
Thanks a lot for your clear and detailed response.
That actually is quite a lot of pain, wow. Sounds like a few frustrating hours of work.
I guess I'll just have to work without fancy Pseudo Effects then.
Hey, me again – I've been out of town and only got around to test the code snippet as provided.
Now, trying to include my own ffx, I failed with converting ffx to binary.
Any help with that? Extendscript's Convert to Binary doesn't seem to help, and the only alternative I've stumbled upon is this script (https://aescripts.com/file-to-binary-converter/) for sale at aescripts. Seems a bit of stretch for a seemingly simple problem.