Select - specific components within GH file

Hi,

Question: I would like to be able to select specific GH components within a GH file.

So here, an very simple example (but the problem is generic, for larger GH files)

I thought there was a metahopper component who could do this, unfortunately I can recal…

Any suggestions?

Many thanks.

Hello,

Are you looking for those components ?

Get Objects From Same Type could also be used if you renamed some params.

GetAllDataParams.gh (11.8 KB)

1 Like

Thanks!

It select all the components :).

One more question,

Do you know a way to ‘show’ the selected components a bit more clear?
When selected they become a bit green, but in a rather big GH script its still quit hard to lookup were they actually are :sweat_smile:

Many thanks! :slight_smile:

If you want to permanently make those parameters more visible, once selected you could group them and use the Blob outline.

Oh, there is a component Highlight Objects in Metahopper that also does something similar, and it can be reverted.

And for temporary highlight, Get Selected Objects can be used. Once all parameters are selected, click once on Select. Then, if you hover the mouse on the button, a blue border is displayed.

1 Like

2023-04-22 18_42_14-Window
select all Data params.gh (2.4 KB)

  private void RunScript(bool x)
  {
    if(x) wastrue = true;
    else if(wastrue){
      foreach(Grasshopper.Kernel.IGH_DocumentObject obj in this.GrasshopperDocument.Objects){
        if(obj is Grasshopper.Kernel.Parameters.Param_GenericObject){
          obj.Attributes.Selected = true;
        }
      }
      wastrue = false;
    }
  }
  // <Custom additional code> 
  public bool wastrue;