Is it possible to hide the Basic Tab in the attribute viewer?
-
I have NodeDatas that dont need their "Basic" to be shown. Is it possible to hide this tab?

-
Hey @ECHekman,
it depends a bit on what you do in your description, which bases you include, and what you consider
NodeDatainstances in your case. Are you actually talking about plainNodeDatahooks or are you talking about derived types such asObjectData?When we look for example into
Ocube.res, we can see it includesObase:CONTAINER Ocube { NAME Ocube; INCLUDE Obase; // includes the description base for all objects Obase.resWhich among other things contains the
Obaselistgroup, which is the group you mean.

You could either not include the base description for your node type, or use a modified base which for example hides all elements in that group. But I personally would say that none of these approaches are really a good idea, as Cinema 4D is designed with the assumption that each basic scene element (object, tag, etc.) includes their base description.
Falling to do so, will either make your plugin outright not work, or - when using more 'clever' approaches such as hiding all parameters, or hiding the whole group via
GetDDescriptionor a modified base - severely impact how users can interact with your scene element.When you implement a plain
NodeDatahook, you should not see any extra tabs, as plain node hooks should not include any bases.Cheers,
Ferdinand -
Hi @ECHekman,
Please also think about UX when deciding something like this. Your everyday C4D user expects just about any object to be customizable in this regard, even if they mostly don't use it. And while I think that objects like fields or deformers don't need things like X-Ray or the visibility flags and I think that it would be better to hide those for objects that don't use them, it's still established and expected as a common base.
Unless this is something that's adjusted in all of base C4D I don't think it's a good idea to break this sort of user experience for your own plugins. Coherence is a big thing in UX if you want to make your plugin feel like a seemless integration.
Also unless you're making this plugin solely for yourself you better believe that some peaceful day some user will show up yelling "why can't I change the icon color?" which even might be your future self.