THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/09/2011 at 10:45, xxxxxxxx wrote:
Hi,
my test-exportplugin doesn't work!
RegisterSceneSaverPlugin() returns false, but why?
I haven't an idee, please help!
Here the code:
import c4d, sys;
from c4d import plugins, storage;
PLUGIN_ID = xxxxxxxx;
PLUGIN_NAME = "TestExporter";
PLUGIN_VERSION = "1.0";
PLUGIN_RESOURCE = plugins.GeResource();
class TestExporter(plugins.SceneSaverData) :
def Save(self, node, name, doc, filterflags) :
print("Export started!");
return storage.FILEERROR_NONE;
if __name__ == "__main__":
if plugins.RegisterSceneSaverPlugin(PLUGIN_ID, PLUGIN_NAME, TestExporter,
c4d.PLUGINFLAG_SCENEFILTER_DIALOGCONTROL, "Discription", "mod", PLUGIN_RESOURCE) :
print(PLUGIN_NAME + " Version " + PLUGIN_VERSION + " loaded succesfull!");
else :
print("Initialisation failed!");