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

    Files and modules organization

    Cinema 4D SDK
    3
    3
    640
    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.
    • K
      kisaf
      last edited by ferdinand

      Hello there

      There is my main module A. It should use a module B (located in the same folder) and Python's standart module YAML (which doesn't exist by default).
      Whats the best solution? Should I just download YAML and copy it to module A folder?

      Right now module A is placed here

      %user%\AppData\Roaming\Maxon\Maxon Cinema 4D R25\library\scripts\

      I'm not sure, but maybe I should use another folder, e.g. E:\C4D_scripts and use environment variable C4DPYTHONPATH39?

      How do you orginize your files and modules?

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

        Hello @kisaf,

        Thank you for reaching out to us. There are multiple search paths being added to our Python interpreter, both predefined and custom. The custom module search paths registered with C4DPYTHONPATHXX are one option but not the only one.

        I recently updated the Python libraries manual in the Python docs, the manual has not been reviewed yet, so you will still find typos in there, but it will convey the information you are interested in. The manual will be released in an upcoming version of the SDK, find below the markup of the manual as a 'preview'.

        Please excuse the informal approach, but I am quite short on time, and the manual will contain all relevant information for you, so I am taking this route as an exception.

        edit: The manual is published for quite some time now, I just forgot to update this thread: Cinema 4D Python Documentation: Python Libraries Manual

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • R
          randymills
          last edited by

          AWESOME! Thanks @ferdinand!!!

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