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

    Custom framework locations

    Cinema 4D SDK
    3
    3
    498
    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.
    • E
      eldiren
      last edited by

      I'm incorporating some external libraries into my build and so I have a custom hierarchy built up. I've been able to figure out on my own how access my projects in a solution i.e:

      /plugins/my-custom-folder/plugin1
      /plugins/my-custom-folder/plugin2
      /plugins/my-custom-folder/plugin3
      

      But I cannot figure out how to use my custom common api. Assuming I've given it the ModuleID com.company.common.framework and placing it in my-custom-folder I've tried adding it a few different way to a projectdefinition.txt

      1. APIS=plugins/my-custom-folder/common.framework
      2. APIS=common.framework
      3. APIS=plugins/my-custom-folder/com.company.common.framework
      4. APIS=com.company.common.framework
      

      The ones where I specify plugins/ get close, the project gets generated but the reference can't be found, and it doesn't pop up in my solution's framework list. The framework folder itself is called plugins/my-custom-folder/common.framework. Maybe it needs to be com.company.common.framework after the ModuleID defined in the projectdefintion.txt. I also noticed the C4D frameworks don't even use the ModuleID field.

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

        As far as I am aware all frameworks need to be in the frameworks directory, ie the same one the C4D frameworks are located in. That is where I place all my frameworks and it works fine. I have already requested an addition to the project tool to let us set our own additional framework folder. Hopefully sometime we will see it added.

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

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

          Hi As Kent stated if it's a Cinema 4d frameworks you should put it in the framework directory.
          This way it will be accessible with APIS=common.framework in your projectdefinition.txt

          For more information, take a look at the Custom Framework Manuel.

          If you have any questions, please let me know.
          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

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