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

    Get hair data from HairObject

    SDK Help
    0
    2
    261
    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

      On 24/04/2016 at 12:35, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I have a HairObject with 10 guides that generates 1000 splines (based on the guides).

      I use the following code to retrieve information about the guides:

      HairObject* hair_object = static_cast<HairObject*>(object);
      HairGuides* guides = hair_object->GetGuides();
      

      How can I get information about the actual hair ?
      What I need is a data structure that contains 1000 splines, so I can parse every point of each spline.

      Is there any example on how to do that ?

      Thank you very much.

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

        On 25/04/2016 at 02:11, xxxxxxxx wrote:

        Hello,

        to access the points that define the hairs stored in a Hair object you have to call GenerateHair(). Please notice that you have to call this inside a pair of Lock() and Unlock().

        You find an example how to use this in this thread:

        • Generating Hair

        best wishes,
        Sebastian

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