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

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

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

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! 🙂