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
    1. Maxon Developers Forum
    2. moghurt
    3. Best
    • Profile
    • Following 2
    • Followers 0
    • Topics 3
    • Posts 7
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by moghurt

    • Encountering Issues with Generating Hash Suffix for Preferences Directory in C4D

      Hello everyone,

      I am experiencing some issues while generating the directory for the Cinema 4D preferences folder. I referenced the code from Maxon's official Github repository, 'cinema4d_py_sdk_extended/scripts/01_foundations/retrieves_temp_folder_r17.py'.
      https://github.com/PluginCafe/cinema4d_py_sdk_extended/blob/ba0daf1711ef0065f6587bf08b8aaec6c48dc96f/scripts/01_foundations/retrieves_temp_folder_r17.py

      When I use this method and input the directory 'C:\Program Files\MAXON\Cinema 4D 2023', the result I get is 'C:\Users\Mcyog\AppData\Roaming\MAXON\Cinema 4D 2023_76175CB', where the hash suffix is '76175CB', a 7-digit number. However, the correct result should be '076175CB'.

      I have tried other directories and they all output the correct hash suffix. Only the directory 'C:\Program Files\MAXON\Cinema 4D 2023' has this issue.

      Interestingly, when Cinema 4D automatically generates preferences, it creates the correct 8-digit hash suffix '076175CB' for this directory. I would like to know if the method from Github needs to be updated, and I need a way to retrieve the preferences without starting Cinema 4D, as this seems to be the only solution.
      CRCbug.gif

      Any assistance or insights would be greatly appreciated. Thank you!

      posted in Cinema 4D SDK python
      moghurtM
      moghurt