Scripting apply a preset - How to tell what type of layer from a ffx file? Need some Scripting help
Hi Guys,
I've written a script for myself to output a folder of presets into a comp, staggered at the current CTI point. SO for example I get a comp with 3s of each preset. Then I can render it out for a preview type file. Amongst other uses. It works great apart form one problem.
If i have a mix of presets that use either a text layer or shape layer or solid, i cannot work out a way for the script to know which is which whilst creating the layer for the preset. Currently I am grouping the presets that I know are shape layers, solids/adjjustments, etc and text layers. But I donlt think this is ideal.
Is there a way we can parse the ffx to find what layer type it was built to use. Or can you apply the preset in some way that that in applying the layer type is determined, just as if you did so in the GUI.
Does anyone know how to solve this, I'm interested to hear a solution if possible.
