Apply Hair Material to an object

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

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

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 :)

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

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