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
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Saving & Loading User Preset

    Cinema 4D SDK
    2
    3
    626
    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.
    • P
      PdZ
      last edited by m_adam

      Dear Maxon-Developer / -User,

      first of all:
      Congratulations in acquiring Redshift. Great choice!

      I want to do the following:

      When rightclicking on the "arrow" left next to the Shader-Slot, you are able to save the Shader as preset.
      And you can load it the same way.
      I saw in the Maxon C4D R20 SDK that there is maybe a possibility to do so?

      DOCUMENT_PRESET_COMMAND_LOAD button Load preset.
      DOCUMENT_PRESET_COMMAND_SAVE button Save preset.

      Is it possible to do that via python on certain shaders so I can save them at one point and load them into another shader at another point?

      Thx in Advance!

      Cheers,
      PdZ

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi, I'm afraid this is not possible to do in Python since the ContentBrowser is not exposed to Python.
        In C++ you can call SavePresetObject directly. Moreover, there is no way to automate the "click" on this since everything is hardcoded in the popup menu build by the texture field UI.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • P
          PdZ
          last edited by

          Hi Maxime,

          thank you very much! Good to know. I would otherwise searched forever.

          Cheers,
          PdZ

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