|
22nd March 2004, 09:42 PM | #1 |
Member
Advanced member
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
|
Problems with ac_register_file_exporter
Previously, in my plugin, I was using;
Code:
ac_add_command("my_exporter",my_exporter); ac_add_export_menu_item("My Format...","ac3d my_exporter"); However, now the exporter gets added to the export menu, but when I click on it nothing happens except that I get the following message in the console; Code:
incorrect number of args for exporter_select_file (should be 1, got 2) - usage: <string exporter-name> Code:
Boolean my_exporter(char *filename, ACObject *object) |
23rd March 2004, 04:54 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Problems with ac_register_file_exporter
I suspect the exporter name has a space in it - this needs removing.
You are correct that adding an exporter this way is the way to go (although the old method will still work). Andy |
23rd March 2004, 07:15 AM | #3 |
Member
Advanced member
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
|
Re: Problems with ac_register_file_exporter
Ah yes, that'll be it. Thanks Andy.
Interestingly though ac_register_file_importer works even with a space in the name! |
|
|