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

    Modifying or Adding Script Directory?

    Cinema 4D SDK
    r20 python
    3
    5
    1.2k
    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.
    • B
      bentraje
      last edited by

      Hi,

      By default, the script folder is pointed to library>scripts.
      Is there a way to modify or add additional directory?

      For instance, changing it to a network location or on a dropbox directory so it would be easy to edit, update and readily use scripts rather than going to the script manager and open the script every time I make a change on it.

      Is this possible?

      Thank you for looking at the problem.

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by Manuel

        Hello,

        On windows, you can create an environment variable named C4D_SCRIPTS_DIR more informations in the doc
        The doc say : Multiple paths can be separated using a semicolon (;) but it's seem buggy at the moment, i have to investigate a bit further and i'll be back if i found something.

        On OSX you don't have environment variables but you can create a Symbolic Link (not an alias). You have to use the Terminal to do so (ln -s /<source>/myscript.py /<preferences path>/library/scripts) This will create a link in your scripts directory.
        I've tried to link from directory to directory but it doesn't work.

        Cheers
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 3
        • B
          bentraje
          last edited by

          @m_magalhaes

          I am not sure about the multiple paths
          But having only a singular path, it works as expected.
          Closing this thread for now.

          Thank you. Have a great day ahead!

          1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel
            last edited by Manuel

            thanks a lot and happy to learn your issue is solved.

            About the multi-path separated with semicolon, I can confirm it is bugged at the moment but will be fixed in the next release.

            Cheers
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

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

              This issue is now fixed in R21.

              Cheers,
              Maxime.

              MAXON SDK Specialist

              Development Blog, MAXON Registered Developer

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