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

    Start Cinema 4D, how to set Preference path

    Cinema 4D SDK
    windows
    3
    6
    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.
    • R
      render_exe
      last edited by

      hello there!
      I want start Cinema 4D set Preference path by python or Commandline, but I don't know the way, can you help me? Thank you!

      Now i can get Preference path:
      import c4d
      c4d.storage.GeGetStartupWritePath()
      c4d.storage.GeGetC4DPath(c4d.C4D_PATH_PREFS)
      52307d6f-2d25-4ecd-a757-77b01e91d77b-Preference path.png

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

        Hey @render_exe,

        Thank you reaching out to us. The path where the preferences of a Cinema 4D installation are stored, i.e., what is shown at the bottom of the Preferences dialog, is hard coded.
        0a383588-9dba-4397-9200-add827e6f2d1-image.png
        On Windows it will always lie in \Users\{NAME}\AppData\Roaming\MAXON\{HASH} and on macOS in Users/{NAME}/Library/Preferences/Maxon/{HASH}. Where {NAME} is your user name and {HASH} a unique identifier for a certain Cinema 4D installation. You cannot change such preference path, it is deeply engrained into Cinema 4D.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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

          Hi and just in case there is this example that demonstrate how to compute the hash of a particular Cinema 4D instance without the need to execute Cinema 4D. But you cannot modify it as stated by @ferdinand.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 1
          • R
            render_exe @ferdinand
            last edited by

            @ferdinand Thank you, I find another way modify Preference path.
            26808f2c-2c20-42e1-82a4-8903687c7fa5-Preference path.png

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

              Hey @render_exe,

              There is a reason why we said this path is read-only. You can do anything you want on your own machine but you should not ship any plugins or scripts that attempt to modify the path at runtime, as this could crash Cinema 4D. Using the command line argument g_prefsPath is okay. Manipulating the config files is not recommend (but sort of okay if you do it on your own machine(s)).

              Cheers,
              Ferdinand

              MAXON SDK Specialist
              developers.maxon.net

              R 1 Reply Last reply Reply Quote 0
              • R
                render_exe @ferdinand
                last edited by

                @ferdinand Understood. thank you 👍

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