I write two plugin. one is automation plug-in,and the other is format plug-in. I can call format plugin in automation plugin and save a file . But How could I pass some parameters from automation plug-in to format plugin? These parameters are used for save file in format plugin.
I look at the Autofilter and Hidden sample in SDK simple directory. My automation plug-in can't pass parameters to format plug-in.
Could anyone help me ?
I use scripting for that purpose. It means that booth automation plug-in and format (in my case selection) plugin must know how to read/write scripting parameters.
There is a pdf (Scripting primer.pdf) that explains how to make scripting aware plug-in in SDK documentation.
Then you write scripting parameters from automation plug-in and read them from format plug-in and vice versa.
You can also use read/write to/from registry for that purpose.
It's been a while since you asked, so maybe you've solved this, but a solution that I am using is to save a temporary text file from one plugin then pull what I need from the other, this relies only on standard file handling as opposed to getting PhotoShop to handle it for you.