Solved How to get Preferences folder path?

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

相信我,可以的!

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.

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.

@m_adam Great, thank you!

相信我,可以的!