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

    Loading a Fresnel and Brickshader?

    SDK Help
    0
    3
    224
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/12/2007 at 15:28, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello,

      I know how to create and assign a new material to an object in COFFEE. I also know how ot enable different channels and how to play with their settings. Loading a texture also is possible.

      But how do you load 1) a Fresnel and 2) a Brickshader? Is it also possible to change the settings of the Brickshader in COFFEE?

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/12/2007 at 13:38, xxxxxxxx wrote:

        No one? Is this not possible in COFFEE?

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 28/12/2007 at 09:49, xxxxxxxx wrote:

          I am not sure if it´s possible to add a channel shader via COFFEE. You can define a texture like so in the BaseChannel (see docs for more info on BaseChannels) :

          var bump = doc->GetChannel(CHANNEL_BUMP);
          var bumpBc = bump->GetContainer();
          bumpBc->SetData(CH_TEXTURE, "foo.tif");
          bump->SetContainer(bumpBc);

          There is GetShaderContainer() and SetShaderContainer(). This should be the functions you need to use. Create a brick shader in c4d and read out the shader container to see how it is built up, then you may be able to recreate and set it customly.

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