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

    Unique identification of scene elements?

    SDK Help
    0
    5
    861
    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 27/11/2016 at 11:55, xxxxxxxx wrote:

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

      ---------
      Hi!
      I'm looking for ways to uniquely identify elements (objects, materials, tags etc.) in a scene. The "GetGUID()" function seems to be perfect for my purposes, but only applies to BaseObjects. Is there a similar way of obtaining a unique ID number for other elements?

      Thanks
      /Filip

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

        On 27/11/2016 at 19:01, xxxxxxxx wrote:

        FindUniqueID() with MAXON_CREATOR_ID

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

          On 28/11/2016 at 01:34, xxxxxxxx wrote:

          Hello,

          you can find some documentation on FindUniqueID() in the BaseList2D Manual.

          Using MAXON_CREATOR_ID just accesses the internally stored GeMarker (see GeMarker Manual).

          best wishes,
          Sebastian

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

            On 28/11/2016 at 02:06, xxxxxxxx wrote:

            Thanks!
            I tried FindUniqueID() and it seems to work perfectly for my purposes.

            Best regards
            /Filip

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

              On 28/11/2016 at 05:11, xxxxxxxx wrote:

              Originally posted by xxxxxxxx

              Using MAXON_CREATOR_ID just accesses the internally stored GeMarker (see GeMarker Manual).

              Aha, so basically it returns the data stored in the GeMarker that you can also get with GeMarker::GetMemory()? Interesting. Good to know 🙂

              Best,
              -Niklas

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