On 21/11/2015 at 01:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Mac ;
Language(s) : C++ ;
---------
I am trying to set some hair guides on a hair object directly.
I can create a HairGuides object using either AutoAlloc<> or via HairGuides::Alloc().
I can then set those hair guides using ((HairObject * )hairObj)->SetGuides(guidesObj, false).
However, I've noticed several things:
-
Calling SetGuides() with the second parameter ("clone") set to true will instantly crash C4D. What is this option for? The API documentation is just about as helpful as the function declaration ("true to clone the supplied guides").
-
If the HairGuides object is deallocated/freed at any time (either via AutoAlloc when I leave the scope, or via calling HairGuides::Free(guidesObj)), then the guides don't show up in the hair object and/or viewport. If I'm not using AutoAlloc<>, don't I need to free the HairGuides object afterwards? Or does the hair object take care of this for me after I call SetGuides()?
-CMPX