PLUGIN_ENTRY_POINT const char* VRTREE_APIENTRY VRPExportFormats()
{
return "<filetypes><type ext=\"txt\" desc=\"Text File\" /></filetypes>";
}
PLUGIN_ENTRY_POINT int VRTREE_APIENTRY VRPExport(const char *file,
HNode root,
HNode scenes,
HNode libs,
const char *recipePath)
{
//read nodes from scenes and/or libs and write them to the exported file format
//return 0 on successful export
return 1;
}
-- assuming module exports according to recommendation in "Getting Started"
local function exportFormats()
return "<filetypes><type ext=\"txt\" desc=\"Text File\" /></filetypes>"
end
local function export(file, root, scenes, libs, recipePath)
-- read nodes from scenes and/or libs and write them to the exported file format
-- return 0 on successful export
return 1
end
return {
-- alongside existing exports
exportFormats = exportFormats,
export = export
}