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
    • Recent
    • Tags
    • Users
    • Login

    Apply Hair Material to an object

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 363 Views
    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 Offline
      Helper
      last edited by

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

      On 01/03/2010 at 09:32, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11.5 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello ,
      I'm needing to apply an Hair material to an object but I can only apply a c4d material :S . ( in fact I don't find any sdk example about Hair )

      could you give me the class / members to use please ?

      thanks

      clement

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

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

        On 02/03/2010 at 01:49, xxxxxxxx wrote:

        COFFEE or C++?

        cheers,
        Matthias

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

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

          On 02/03/2010 at 01:54, xxxxxxxx wrote:

          Hi Matthias ,

          Coffee sorry 🙂

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

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

            On 02/03/2010 at 02:02, xxxxxxxx wrote:

            Do something like this:

              
            var mat = AllocMaterial(Mhair);    //create Hair material  
            doc->InsertMaterial(mat, NULL);    //insert into document  
              
            var ht = AllocTag(Thairmaterial);    //create Hair material tag  
            op->InsertTag(ht, NULL);    //attach to Hair object  
            ht#HAIRMATERIAL_TAG_LINK = mat; //set the material link  
            

            cheers,
            Matthias

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

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

              On 02/03/2010 at 02:10, xxxxxxxx wrote:

              ha thanks Matthias 🙂 . ok I was missing the "Mhair" and "Thairmatrial" 😉

              cheers
              clem

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