Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Plugin alwas has shader GUI no matter what I do

    SDK Help
    0
    4
    431
    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

      On 17/06/2017 at 09:10, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   18 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I am trying to write a simple object plugin. My problem is that the object of my plugin it always has the shader GUI. I have very carefully put an *.res and *.h file into \res\description. But it does not matter what I write into it. Actually if I delete the file altogether, I still get the same shader GUI. I also have checked multiple times that the string of RegisterObjectPlugin's "description" parameter matches the filename.

      In the console of C4D I get an error that says "Description Error: OMyPluginTest is already registered". This does not make any sense to me, since there is no other plugin with that name. Also the message corresponds to what I write into the "description" parameter, and it seems I can put essentially any random name there and I still get the same message.

      I am completely clueless where the error as well as the shader GUI comes from.
      Thanks for your help.

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

        On 17/06/2017 at 10:53, xxxxxxxx wrote:

        Did you get a unique plugin ID from Maxon? Because if you used one of the 'test' IDs that you can use when prototyping a plugin, that will give you the error if another plug has used it too. It isn't the name that matters, it's the plugin ID which must be unique.

        Steve

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

          On 17/06/2017 at 11:35, xxxxxxxx wrote:

          Yes I did, but apparently I used that one somewhere else? I don't know. Anyway, I changed it and it works now.

          Thank you for your help.

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

            On 19/06/2017 at 00:32, xxxxxxxx wrote:

            Maybe you have two binaries in your plugin's folder? It happens to me sometimes that I do my first build before doing further adjustments to the project file, so I get something like "cinema4dsdk.dylib", and then later I change the product name in the project, build again, and also get "myplugin.dylib". Cinema tries to register plugins from both binaries, but - of course - fails with one of them.

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