Hiding other Tag's Tabs
-
On 08/03/2013 at 03:57, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;---------
Hi Folks,
is there a trick to hiding the tag tabs that show in the AM with your object? For instance, when browing an objects AM, you get a tab for the Phong tag. Are we able to prevent this from happening?
WP. -
On 08/03/2013 at 05:44, xxxxxxxx wrote:
Hi,
Yes, you can register a tag plugin without TAG_VISIBLE.
This will completely hide the tag from the OM and AM.
Do you want to only hide the tag tab in the AM? -
On 08/03/2013 at 15:22, xxxxxxxx wrote:
Hi Yannick,
Originally posted by xxxxxxxx
Do you want to only hide the tag tab in the AM?
Yep, I just want to prevent other tags from becoming a tab in my objects AM display (such as the Phong tag). The tag itself doesn't need to be hidden though.
Cheers,
WP. -
On 11/03/2013 at 03:35, xxxxxxxx wrote:
I think it's not possible to hide other tags tab in the AM.
AFAIK we can't hide them from GetDDescription() because other tags tab display is implemented by CINEMA. -
On 11/03/2013 at 11:21, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Hi Yannick,
Originally posted by xxxxxxxx
Do you want to only hide the tag tab in the AM?
Yep, I just want to prevent other tags from becoming a tab in my objects AM display (such as the Phong tag). The tag itself doesn't need to be hidden though.
Cheers,hi,
i read this as - the object itself has not to be hidden, but i do not care if it does. so why do not hide
the object itself with the gelistnode nbits ? -
On 11/03/2013 at 17:19, xxxxxxxx wrote:
OK thanks Yannick.
Hi LD, I'm not wanting to hide the object, but to hide the tabs that show up in the object's AM display that aren't apart of the object itself - such as the Phong tag. Example: add a cube to your scene and have a look at the AM. See how there's a "Phong" tab? I was wishing to hide those tabs from being displayed while the object is selected.
WP. -
On 11/03/2013 at 18:48, xxxxxxxx wrote:
you understood me wrong. with 'object' i meant object in a programmatically sense, for your
case a tag object. in your plugin class override the message method, from there you could
edit/hide newly added phong tags. the result would not appear in the am, just like existing
tags which are hidden by default, like for example the pointtag. -
On 11/03/2013 at 19:18, xxxxxxxx wrote:
Ah, my apologies LD.
I was hoping to avoid hiding the tag itself. But if that's the only way, then it might have to suffice (though it's not doing any harm if left sitting there either).
WP. -
On 11/03/2013 at 19:29, xxxxxxxx wrote:
i have to admit the solution pretty clunky, that is why i included the quote in my
first posting.just a REALLY REALLY wild guess : as yannick pointed out you cannot access
the xyztag description from getddescription, so this most likely won't work
either, but it might be worth a try. you could include the descriptions of the
tags you want to hide for plugin in your plugin ressource file and then
hide the whole group. -
On 08/04/2013 at 01:40, xxxxxxxx wrote:
Hi there,
There's a quirk I noticed regarding the tabs on the AM...
It seems like the TAG_MULTIPLE flag has some effect on the tab visibility. Unique tags(Phong, Dynamics, Cloth, Todo, etc.) show up on their parent object's AM. But others like UVW, Constraints, Selection, Material, etc. don't pop up. It would be nice if there's an explicit way of setting the behavior...
I was gonna suggest another clunky workaround, which is to have your tag check if it's currently selected in the OM. If it's selected, have the descriptions visible, but have them hidden when the tag's deselected. Problem is if you have multiple AM's open and one's locked to your tag, then the descriptions will disappear on the locked AM the moment the tag's deselected... -
On 08/04/2013 at 02:50, xxxxxxxx wrote:
QUOTE=rustEdge]
It would be nice if there's an explicit way of setting the behavior
[/QUOTE]Yeah, I agree. I know it's not a big deal, but personally I find it irritating that tabs from various tags show up in my objects AM. They're just adding tabs to the AM for very little reason. If I want to access a tag's attributes, then I'll select the tag itself.
As for hiding them manually... I haven't managed to solve this yet, but it's on my list of 'to go back and review'
WP.