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

    Can GeGetStartupWritePath return icorrect path?

    Cineware SDK
    r19
    3
    3
    780
    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.
    • mikeudinM
      mikeudin
      last edited by mikeudin

      Hello guys!
      I have an issue from customer. He uses Cinema 4D R19 on MacOs High Sierra and gets this error when my python plugin trying to create folder with os.mkdir in Maxon folder that is parent of Cinema 4D Prefs folder (GeGetStartupWritePath):

      Error type: OSError,
      [Errno 13] Permission denied: '/Volumes/cc/c3d/plugin_prefs_folder'
      

      Here is result if calling c4d.storage.GeGetStartupWritePath() in a customer console:

      1637784301_336578_Schermata_2021-11-24_alle_20.57.47.png

      Why this path so strange? How it can happend? This is a OS issue and it is impossible to create folder on one level upper than C4d Startup Write Path?

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

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

        Hi,

        I've tested it on my mac the resulting path is the same that you can see at the bottom of the preferences dialog box (cmd+E)
        Some strange scenarios could happen on his computer. This path is generated every time cinema4D starts.
        If the updater is launched, the updater can passe to cinema4D an argument that will change this path. That could explain why, with a R19, it displays R20 on the path.

        • I would check what path the user has in the preferences dialog box.
        • I would check if the user doesn't launch cinema4D from a shortcut that could lead to some strange configuration.
        • Checking if he doesn't use g_prefsPath argument also. (even in the resource/config.txt file)
        • Probably re-installing cinema4D will fix this issue.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

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

          Hello @mikeudin,

          without any further questions we will consider this topic as solved by Friday, December the 17th.

          Thank you for your understanding,
          Ferdinand

          MAXON SDK Specialist
          developers.maxon.net

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