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
    • Recent
    • Tags
    • Users
    • Login

    How to import non-included python libraries?

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 457 Views
    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 Offline
      Helper
      last edited by

      On 29/07/2015 at 03:55, xxxxxxxx wrote:

      I would like to use some python libraries that are not a part of c4d.
      How should I place and access those libraries?

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

        On 29/07/2015 at 07:12, xxxxxxxx wrote:

        See https://developers.maxon.net/forum/topic/8229/10727_best-practice-for-imports.
        Pinned in the Python Development forum btw. 🙂

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

          On 29/07/2015 at 09:39, xxxxxxxx wrote:

          Thank you for the reply,
          This is not for plugin, this is for a python generator. Does it make a difference?
          I thought the process would be easier, I read a bit about the [user]\AppData\Roaming\MAXON\[c4d Version]\library\python\packages\win64 folder, I thought it would be dropping libraries in and just let it work.

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

            On 30/07/2015 at 04:28, xxxxxxxx wrote:

            You can use devtools to import Python modules from a directory named "python" near your
            scene file.

            Apart from that you can indeed copy the packages into the folder you named.

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