How to easy switch on/off some GH component's full name display

Hi all,
I wonder if it is a way or a plug-in can help to quickly switch on/off some components’ full name display. I am learn a plug-in – Rhino.Inside.Revit, I want to keep its components all showing input and output’s full name. But for the GH’s native components, I would like to keep them not showing full name so they won’t occupy too many space on the canvas…
Is it possible to achieve that?
Many thanks,

1 Like

Does anyone know how to keep both full name and non-full name Components?
I don’t want to manually type the button’s acronym for every input and output.
What I want is an easy way to switch on and off the components’ full name.

With Bifocals, you can exclude components by their names within their respective categories.

You need use the exact category name of Rhino.Inside.Revit plugin

print o.Category

comps_names.gh (17.4 KB)


Sorry, i thought you asked about components name

2 Likes

I don’t know of any way to selectively apply the fullname display mode, but it is definitely possible to rename the nicknames to the full names of any param or component, so that it looks that way. here’s a version where you select the components to change them:

    var objs = GrasshopperDocument.SelectedObjects().OfType<Grasshopper.Kernel.GH_ActiveObject>();

    foreach(var obj in objs)
    {
      var comp = obj as GH_Component;
      if (comp != null)
      {
        foreach (IGH_Param p in comp.Params)
        {
          p.NickName = p.Name;
        }
        comp.ExpireSolution(true);
        continue;
      }
    }

Nicknames to FullNames.gh (4.6 KB)

Hi Seghier, thanks for your prompt reply. But actually what I want is to change a component’s inputs and output names

1 Like

Wow, this is Exactly what I am after!!
Many thanks jokamn~~

1 Like

Hi jokamm, I wonder if it is also possible to change the fullname to nickname.
I have tried to modify your Python script but with no luck.
Did I miss something?
Many thanks,

I looked it up in the grasshopper SDK and it doesn’t look promising:

OK, good to know, thanks jokamm.

1 Like