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
    • Login

    changing Preferences/Interface

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 241 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 28/06/2013 at 11:51, xxxxxxxx wrote:

      Hi everyone,

      I am trying to get some infos from the preferences (actually, I need to get the Interface/Scheme) but for an unknown reason, I can get it when I write _  Interface[c4d.PREF_INTERFACE_SCHEME] _directly in the console, but it doesn't work when I try to get it from an external Python file.

      I thought that was because the preferences inherited from the c4d or c4d.documents classes, but I can't find it in the sdk...

      If you could help me with that, 🙂

      Thank you!

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

        On 28/06/2013 at 23:51, xxxxxxxx wrote:

        the  method you are looking for is c4d.GetWorldContainer(). some pref branches/options are
        not included in that container for a reason only god knows why. if the interface scheme is one of 
        them you have to grab the preference plugin node and then access its data container ( which is
        actually named 'settings ' if i do remember correctly ).

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