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

    Setting preferences

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 312 Views
    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.
    • H Offline
      Helper
      last edited by

      On 06/05/2016 at 02:16, xxxxxxxx wrote:

      I like to set various preferences.
      Where can I find an overview of all preference containers and constants?

      For example:
      - openGL Anti-Alias does not have a dedicated container (uses GetWorldContainerInstance directly) and uses constant WPREF_OPENGL_ANTIALIAS

       #Anti-Aliasing
          pref = c4d.GetWorldContainerInstance() #preferenses
          pref[c4d.WPREF_OPENGL_ANTIALIAS] = 2 
      

      - Net Render Name uses the PREFS_PRI_NET net render subcontainer and constant PREF_NAME

        np = ma[c4d.PREFS_PRI_NET]  # get the net render sub-container
      
        np[c4d.PREF_NAME] = "NewName"
      
        ma[c4d.PREFS_PRI_NET] = np  # store the changed container to preferences
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 09/05/2016 at 01:18, xxxxxxxx wrote:

        Hello,

        I'm afraid there is no list of all preferences. The preference system can be extended using the C++ API so every module can add new preferences independently. So if you are interested in the preferences of some module you have to consult the resource files of that module.

        Best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 12/05/2016 at 08:24, xxxxxxxx wrote:

          Ok, clear.
          Thanks, Pim

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