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
    • Recent
    • Tags
    • Users
    • Login

    BaseObject::GetTag() doesn't find my tag?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 293 Views
    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 Offline
      Helper
      last edited by

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

      On 02/05/2009 at 15:16, xxxxxxxx wrote:

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

      ---------
      Hi,

      I try to get a tag from an object. It's not a standard tag, but a plugin tag I wrote myself.

      I try to do it like this, using the tag's plugin ID:

      > BaseTag \*mytag = op->GetTag(123456);

      But I always get NULL.

      If I try (just for fun) to get a standard tag, it works fine:

      > BaseTag \*mytag = op->GetTag(Tphong);

      Am I doing something wrong? Is it an SDK bug? Can I just get standard tags with GetTag()? How can I solve this problem?

      Thanks in advance!

      Greetings,
      Jack

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

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

        On 02/05/2009 at 15:51, xxxxxxxx wrote:

        OK, forget it 😉

        I should not have mistyped the plugin id when registering the tag. Everything works now.

        Cheers,
        Jack

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

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

          On 03/05/2009 at 07:23, xxxxxxxx wrote:

          I was going to say that I use the op->GetTag(PLUGINID) method all of the time and it always works. Glad you sorted it! 🙂

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