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

    from R12 to R15

    SDK Help
    0
    8
    701
    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 06/10/2013 at 08:35, xxxxxxxx wrote:

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

      ---------
      Hi

      I just finally had some money to upgrade from R12 to R15.
      Now, how do I upgrade my C++ plugin projects in XCode4 to R15?
      It seems that all my projects started as clones from the SDK code. I was never able to start one from scratch.

      Thanks

      Peter

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

        On 06/10/2013 at 11:13, xxxxxxxx wrote:

        Compile and resolve your errors. Define the "__LEGACY_API" preprocessor definition in your
        project settings.

        Best,
        -Niklas

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

          On 06/10/2013 at 12:56, xxxxxxxx wrote:

          Right....
          But I do have to link to the new c4d libraries. Do I change any build settings?

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

            On 06/10/2013 at 14:01, xxxxxxxx wrote:

            Howdy,

            You start from a copy of the R15 SDK project like before, then change the name of the project and target from within Xcode 4. With Xcode 3, you could change the name of the project in the Finder, but in Xcode 4 you may lose some of the build settings, so you have to change the name after loading the copy into Xcode 4.

            Adios,
            Cactus Dan

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

              On 06/10/2013 at 15:45, xxxxxxxx wrote:

              Thanks, Cactus Dan

              That's what I thought.

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

                On 07/10/2013 at 16:37, xxxxxxxx wrote:

                So, I successfully migrated one of my extra-simple tag plugins from R12 to  R15. Based on the SDK code.

                Next I tried my hand at a little more complex DescriptionToolData plugin. All was going well and the changes were obvious (long->Int32, etc, I suppose the LONG in the .res file do stay?). Compiled fine. In the Console window I get my message that the plugin has loaded successfully (RegisterToolPlugin returned no error). But the plugin doesn't show in the Plugin menu. And it looks like it doesn't call InitTool or InitDefaultSettings.

                I checked and rechecked but can't figure it out. Any ideas?

                Peter

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

                  On 07/10/2013 at 17:13, xxxxxxxx wrote:

                  New info coming in. Currently my R15 plugins folder is empty except for SDK and the Tool plugin I am trying to get to work.

                  To my surprise I have an entry in the Plugins menu called "Power Gradient" that I ignored until now. When I click on it I get a error alert: Unable to open file ..../name of my plugin.res. I searched through my files and found no reference to "Power Gradient". There is string in the file c4d_string.str of the SDK. So somehow this is related to the code I "borrowed" from the SDK. But how?

                  Peter

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

                    On 07/10/2013 at 17:18, xxxxxxxx wrote:

                    OK. Just to close this: I had forgotten to remove the SDK res folder. So both my own resources and the SDK's were included in the build. Deleted SDK res folder and all is well now.

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