Init RegisterSceneSaverPlugin failed



  • 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!");  
    


  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/09/2011 at 06:32, xxxxxxxx wrote:

    Hi WallgäuGames, there might be some more reasons why this function fails. First you pass "Discription" to the register function. In this case this argument is the name for the description files. I uploaded a small example with the correct folder structure for your plugin: [Click](http://www.xpresso24.com/forum_stuff/Py-Modexporter.zip)

    I hope this helps! If you have any questions, feel free to ask. Cheers, Sebastian



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 06/09/2011 at 02:10, xxxxxxxx wrote:

    You're the man!
    Now it works. The discription files were missing.
    Thank you.

    Cheers


Log in to reply