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

    LayserSet customgui configuration

    SDK Help
    0
    2
    376
    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
      Helper
      last edited by

      On 24/08/2017 at 00:11, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I need to use a custom gui similar to LayerSet, the one that is used in Layer shader.
      I was wondering if I can customize the already existing one. For example, I need only 4 blend modes (add,multiply,subtract and normal). Can I remove the rest ?
      Also, if the blend mode is multiply, I need to hide the weight realslider. Can I do that ?
      If the above are not possible, I'll need to create my own custom gui.

      Is there any guide on how to createa a CustomGui similar to this one ? 
      For instance, how do you move the shaders up and down ?

      Thank you for your time.

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

        On 24/08/2017 at 08:59, xxxxxxxx wrote:

        Hi,

        LayerSet is a custom GUI used only in the Bitmap Shader to select layers from a multi-layer bitmap ("Layerset" parameter).
        What you are seeing for Layer Shader layers is a completely different custom GUI and it is not exposed by the API.
        So the solution is to create your own custom GUI that does what you need. To move layers up and down, mouse drag and drop has to be handled.

        You can find a custom GUI example in the SDK examples: customdata_customgui.cpp

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