Hide a tag

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

On 29/04/2012 at 14:53, xxxxxxxx wrote:

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

---------
Is it possible to add a tag to an object my make it invisible in the Object Manager?
For example, may I add a Tcoffeeexpression tag to an object but hide that tag?

Rui Batista

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

On 29/04/2012 at 16:00, xxxxxxxx wrote:

As far as I know.
The only way to hide a tag with Coffee is to do it in a tag plugin like this: myTag::DisplayAllowed() { return FALSE; }

-ScottA

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

On 29/04/2012 at 16:28, xxxxxxxx wrote:

Thank you Scott.
I already knew that one and I already used it in a tag that I created for one of my plugins.
But what I need is to hide a COFFEE tag.
I know that some tags are invisible by default. Could that be a bit that is set in the container of the tags?

Rui Batista

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

On 29/04/2012 at 19:59, xxxxxxxx wrote:

I've never seen anything like that. Not even the C++ SDK.
The only way I can see how to hide a tag like that is to:
-Select the object and assign it to a layer
-Select the tag and assign it to another layer
-Solo the object's layer & lock the tag's layer

This is doable with C++ and Python. But I don't know about with Coffee.
I seem to recall that Coffee had very limited layer support. But that was a while ago and I can't remember.

Probably not what you're wanting. But it's the only way I know how to hide tags at will like that.
Maybe someone else will know a better way.

-ScottA

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

On 30/04/2012 at 01:41, xxxxxxxx wrote:

In C++ you can use the PLUGINFLAG_HIDE in the RegisterTagPlugin-Function.

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

On 30/04/2012 at 02:40, xxxxxxxx wrote:

And the method mentioned by Satara is basically 'permanent' since the tag is either visible or hidden for good when the plugin is registered at startup of C4D.

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

On 30/04/2012 at 03:05, xxxxxxxx wrote:

So, even if I set the PLUGINFLAG_HIDE with tag->SetBit(PLUGINFLAG_HIDE); it will not make it invisible? :-(

Rui Batista