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

    Acessing BaseShader properties

    Cinema 4D SDK
    c++
    2
    3
    672
    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.
    • rsodreR
      rsodre
      last edited by rsodre

      Hello,

      I have a BaseShader attribute on my plugin, and I want to access it's properties.

      For example, I can identify it's a gradient shader by it's type (Xgradient), but how can I know it's type (U, V, radial, etc...)?

      Thanks,
      Roger

      rsodreR 1 Reply Last reply Reply Quote 0
      • rsodreR
        rsodre @rsodre
        last edited by

        Answering myself, I found header files for some shaders in the cinema framework, like xcolor.h for the Xcolor shader, but not for all of them. Unfortunately there's anything for the two I want right now (Xgradient and Xvertexmap).

        Then of course, the good old trick of dragging the attribute to the command line tells me what I'm looking for...

        1 Reply Last reply Reply Quote 0
        • S
          s_bach
          last edited by

          Hello,

          there should be header files for all shaders.

          The header file of Xgradient is xslagradient.h.

          The header file of Xvertexmap is xslavertexmap.h.

          best wishes,
          Sebastian

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

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