Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Init RegisterSceneSaverPlugin failed

    PYTHON Development
    0
    3
    388
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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!");  
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post