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

    Modify Preferences of an Third Party Plug-in?

    Cinema 4D SDK
    r21 python
    2
    3
    342
    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.
    • B
      bentraje
      last edited by

      Hi,

      As I understand, you can modify preferences using the c4d.GetWorldContainerInstance() as specified in this thread
      However, for some reason, not all preferences are covered especially the Third Party preferences.

      I specifically trying to modify this one given by the script log
      prefs(1027974)[c4d.XPPREFS_SYSHUD_SHOW] = False

      It's from the Xparticles plug-in.

      Is there a way around this?

      Thank you

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

        Hi,

        you will find your answer here.

        Cheers
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • B
          bentraje
          last edited by

          Hi @zipit

          Thanks for the response. The thread reference works as expected.
          Here is the code I used:

              op = plugins.FindPlugin(1027974) # Retrieved from the script log
              if op:
                  print op[c4d.XPPREFS_SYSHUD_SHOW] # we know the enum from the console
          

          Have a great day ahead! 🙂

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