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

    Calling C4D via command line to find prefs folder

    Cinema 4D SDK
    r20 r21
    3
    5
    653
    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.
    • kbarK
      kbar
      last edited by kbar

      Is there a flag that can be passed to Cinema 4D via the Commandline to retrieve its preferences folder?

      Just looking at options for creating an installer that installs directly to the users prefs/plugins folder on both windows and osx.

      Thanks!

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

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

        Hi,

        I am not aware of any command line arguments, but have you considered using c4dpy? Either for the whole installer or just for retrieving the the plugin paths.

        Cheers,
        zipit

        MAXON SDK Specialist
        developers.maxon.net

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

          Hi @kbar, there is nothing built-in to know the current preference folder.
          If it's about where to install a plugin, Cinema 4D offers le liberty to choose whatever folder the user wants in the Cinema 4D preference, and this should be the option prioritized.

          But regarding your request as @zipit said, if you can run c4dpy then you can retrieve it directly from it otherwise, the algorithm to generate the pref folder path given a Cinema 4D folder is exposed in retrieves_temp_folder_r17.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

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

            Thanks @zipit @m_adam.

            I will take a look at c4dpy and your link also Maxime.

            Cheers,
            Kent

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

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

              Hi,

              without further feedback, I'll set this thread as solved tomorrow.

              Cheers,
              Maxime

              MAXON SDK Specialist

              Development Blog, MAXON Registered Developer

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