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

    How to get Preferences folder path?

    Cinema 4D SDK
    s22 python
    2
    3
    658
    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.
    • chuanzhenC
      chuanzhen
      last edited by

      Hi,
      I want to get Preferences folder path of my c4d.
      Thanks for any help!

      相信我,可以的!

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

        Hi @chuanzhen from Cinema 4D you can retrieve preference it using the maxon module (the future proof way)

        • maxon.Application.GetUrl(maxon.APPLICATION_URLTYPE.PREFS_DIR).GetSystemPath()

        Using the classic API (better for back-compatibility)

        • c4d.storage.GeGetStartupWritePath()

        And finally if you are not within Cinema 4D you can compute it with Cinema 4D path, as demonstrated in retrieves_temp_folder_r17.py

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        chuanzhenC 1 Reply Last reply Reply Quote 0
        • chuanzhenC
          chuanzhen @m_adam
          last edited by

          @m_adam Great, thank you!

          相信我,可以的!

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