Skip to main content
H-FITS
Participant
September 2, 2025
Answered

How can I make a plugin “save a new file”?

  • September 2, 2025
  • 1 reply
  • 150 views

I’m a beginner, and I want my plugin’s UI button to export a CSV file and write content into it when clicked.
But from what I see, the official SDK doesn’t seem to provide similar examples, and I have no idea how to implement this.
It’s like in AE scripting with .saveDlg() → .open() → .write() → .close().
I’d like to see an example if possible.

 

static PF_Err ParamsSetup(PF_InData* in_data, PF_OutData* out_data, PF_ParamDef* params[], PF_LayerDef* output) {
	PF_ParamDef	def;

	......
	AEFX_CLR_STRUCT(def);
	PF_ADD_BUTTON("TTT", "ttt", NULL, NULL, ID_BUTTON);

	......
	out_data->num_params = ID_NUM_PARAMS;

	return PF_Err_NONE;
}

 

Correct answer shachar carmi

the sdk only deals with importing files into an AE project or rendering out to custom file types.

if you wish to save some file with some arbitrary data in it at a click of a button, you just do it directly using fopen/fwrite/fclose, as you would in javascript.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
September 8, 2025

the sdk only deals with importing files into an AE project or rendering out to custom file types.

if you wish to save some file with some arbitrary data in it at a click of a button, you just do it directly using fopen/fwrite/fclose, as you would in javascript.