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

    Finding one's own objects

    SDK Help
    0
    3
    388
    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

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

      On 07/06/2003 at 13:17, xxxxxxxx wrote:

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

      ---------
      Hi all,

      when my plug-in walks through the tree of objects and tags and materials and whatever in a scene: How can it find out which of them are its own?

      Can it ask an object, tag, etc. for the ID of the plug-in which created it?

      Or do I have to add some sort of magic cookie via SetCustomData?

      There is no virtual function which I may override in a plug-in to that end?!

      So I really have to rely on dynamic_cast?

      Thanks in advance.

      Regards,

      Joern Loviscach

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

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

        On 08/06/2003 at 04:38, xxxxxxxx wrote:

        use GetType() and check for your plugin id...

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

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

          On 08/06/2003 at 04:56, xxxxxxxx wrote:

          Alseo note that RTTI, required for dynamic_cast, is disabled by default in the SDK. And even if you enable it, you can't use it on C4D objects since they a) aren't compiled with that option and b) don't have any virtual functions, which is needed for RTTI. (There are probably other reasons, like DLL boundaries, but I think you get the point... 🙂

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