Page 1 of 1

applying presets by scripting functions

Posted: December 1st, 2005, 5:19 pm
by anime
hi :wink:
is there a way to apply presets (.ffx ones) to layers through scripting?
like, i save a glow stylize effect into a .ffx, and instead of having to reconfigure each property by scripting, in my case it would be easier to load them from the ffx i saved previously, is that possible? o_o
if so, whats the syntax command? i couldnt find anything related to it..
thanks in advance :D

Posted: December 1st, 2005, 5:27 pm
by w_m0zart
Not directly. The solution I did, was converting a .ffx file into a 'readable' text file (.tfx).

I wrote a script which can do that:
(Please see the second post in this thread)
http://www.aenhancers.com/viewtopic.php?t=293

Then I wrote a function which can parse a .tfx file and apply it to a layer.
See for details the same thread, first topic. To make it work for you, I guess you'll just have to remove some features from that script.

Let us know, whether my advice was of any help for you.

Happy scripting...

Posted: December 1st, 2005, 5:38 pm
by anime
oooo fast answer
im gonna try and thereafter post the results here
thanks!

Posted: December 1st, 2005, 5:42 pm
by w_m0zart
Fast? It's just that today is your lucky day. It happened to be that I read the forum once in a while.
Please do not forget to take a look at:
http://www.aenhancers.com/viewtopic.php?t=223

That's where you should be able to find lots of background info. Especially the ApplyTFX.jsx script should be interesting for you.

Good luck