Get active tags?

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

On 26/01/2009 at 10:03, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.1 
Platform:   Windows  ; Mac  ;  
Language(s) :   C.O.F.F.E.E  ;

---------
Hi,

just wanted to write a little helper script... but it seems that in Coffee there is no such thing as in C++:

> void GetActiveTags(AtomArray& selection) const

How can I iterate all selected tags in Coffee?

Thanks in advance 🙂

Greetings,
Jack

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

On 26/01/2009 at 10:31, xxxxxxxx wrote:

Use GetBit().

> \> if(tag->GetBit(BIT_ATAG)) //do something \>

cheers,
Matthias

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

On 25/05/2009 at 03:48, xxxxxxxx wrote:

OK, but how do I iterate the tags?

There is a GetFirstTag() function in COFFEE's BaseObject, but there nothing like BaseTag::GetNext().

Thanks in advance 🙂

Cheers,
Jack

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

On 25/05/2009 at 03:49, xxxxxxxx wrote:

Ah, wait, sorry.
Forgot that in Coffee, tags are derived from BaseList2D, too.

Works.

Cheers,
Jack