![]() |
#1 |
Member
Advanced member
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
|
![]()
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) |
![]() |
![]() |
![]() |
#2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
![]()
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 |
![]() |
![]() |
![]() |
#3 |
Member
Advanced member
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
|
![]()
Ah yes, that'll be it. Thanks Andy.
Interestingly though ac_register_file_importer works even with a space in the name! |
![]() |
![]() |
![]() |
|
|