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

    Plugins limitation count

    Cinema 4D SDK
    6
    9
    1.7k
    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.
    • César VoncC
      César Vonc
      last edited by

      Hello,

      I have a customer that can't install a plugin, I check his console and I see the message :

      OSError : cannot handle more than 50 object plugins.

      As it's tagged with "OSError", I guess it depends of the OS, what can we do to increase this limitation ?

      https://code.vonc.fr

      1 Reply Last reply Reply Quote 0
      • kbarK
        kbar
        last edited by

        What version of C4D and what OS? Also are you developing in C++ or Python?

        I remember that being an issue a long time ago (pre R20?) but I thought it may have been resolved somehow. From memory I think it was an OS limitation to the number of dynamic libraries it could physically load. The advise to customers at the time was to unload plugins that they did not use as often, putting them into their own folders so you could enable/disable them from the Preferences->Plugins list when required.

        https://www.gamelogicdesign.com
        https://www.plugins4d.com

        1 Reply Last reply Reply Quote 0
        • M
          m_adam
          last edited by m_adam

          Hi @César-Vonc I think you speak about Python each plugin type have a limitation of 50 (call to RegisterXXXPlugin).
          So you can have 50 ObjectData and 50 TagData. But you can't have 51 ObjectData (the number of C++ plugins does not count).
          Normally it should be be an EnvironmentError exception that will be raised and not an OSError.
          And there is no workaround.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 0
          • César VoncC
            César Vonc
            last edited by César Vonc

            Hello, it's indeed about Python plugins on S24 and R25 and OSX, and I guess other C4D version and OS.

            It's a shame that it is limited to 50 ObjectData, 50 TagData, etc.., the common user will not check the console window and will think it's a bug from the plugin.

            I hope it wil change one day. 🙂

            Thanks for your answer

            https://code.vonc.fr

            1 Reply Last reply Reply Quote 0
            • ferdinandF
              ferdinand
              last edited by

              Hello @jwzegelaar,

              without any further questions, we will consider this topic as solved by Monday, the 25th and flag it accordingly.

              Thank you for your understanding,
              Ferdinand

              MAXON SDK Specialist
              developers.maxon.net

              1 Reply Last reply Reply Quote 0
              • L
                lev
                last edited by

                Hi guys, can u please solve the limitation of loading maximum 50 python plugins ? I dont understand whats the point of it and quite a bit annoying... A plugin pack basically kills every other plugins.... Thanks in advance

                César VoncC 1 Reply Last reply Reply Quote 2
                • César VoncC
                  César Vonc @lev
                  last edited by César Vonc

                  @lev said in Plugins limitation count:

                  Hi guys, can u please solve the limitation of loading maximum 50 python plugins ? I dont understand whats the point of it and quite a bit annoying... A plugin pack basically kills every other plugins.... Thanks in advance

                  I can only agree.

                  Some times for one plugin you need to register multiple ObjectData or TagData, so it increase quickly...

                  https://code.vonc.fr

                  1 Reply Last reply Reply Quote 1
                  • bacaB
                    baca
                    last edited by

                    Facing this issue on a regular basis.

                    Initial problem is that users are not aware of this particular issue, as in general users are not aware of a python console existence.
                    And users doesn't care if your plugin is C++ or Python, they just expect this will work, once plugin is put into plugins folder.
                    I bet limit for tags or preferences plugins is hard to reach, but limit for ObjectData might be four times larger.

                    If not limit increase,
                    Maybe python plugins registration should be changed?
                    Initially c4d collects all register queries, and if it all within the limit — register them.
                    If total amount out of limits — open the UI to warn user regarding Cinema4D limitations, and allow user to make a decision to include/exclude plugins.

                    1 Reply Last reply Reply Quote 0
                    • M
                      m_adam
                      last edited by

                      This is a bit more complex than that, python is loaded after plugins are registered, therefor for each one we need to have a c++ one that act as a placeholder that will be replaced later by a python one.

                      I can't guarantee anything but I will see what I can do (probably not for the next release.)

                      Cheers,
                      Maxime

                      MAXON SDK Specialist

                      Development Blog, MAXON Registered Developer

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