Input values as table inside grasshopper environment

Hi everyone,

is there a way to have a table inside the grasshopper environment to input values in rows with columns.

Right now I have 4 panels to input values, but I have to make sure they have the same index because theses inputs relate to each other. I can not find table it in the input tab, is there a plugin or anything like that?

Thank you

Here is a small open-source plug-in based on the ReoGrid .NET Spreadsheet:


TableDataInput.zip (378.0 KB)

6 Likes

amazing, that’s exactly what I needed, thanks for creating this

Hi Mahdiyar

Thanks so much for writing that plug in, works great.
Got a questions, you know how I can get the values from it with Python as an GH.object?

I’m writing a small script to export all inputs to a csv file, I managed to get all the values from the sliders using:


ghObjects = ghenv.Component.OnPingDocument().Objects

for obj in ghObjects:
    print type(obj)
    if type(obj) is gh.Kernel.Special.GH_NumberSlider:
        print obj.NickName
        print obj.Slider.Value

When I print all the object I can see and object called: “<type ‘TableDataInputComp’>” I suspect its this one.

you have an idea how to get the values from it and the NickName?
In the future, objective is to than control it from a CSV as well.

Thanks so much
Kico

Very nice component @Mahdiyar
I have 3 suggestions:

  • If it is possible: the window don’t block Grasshopper window (like Ghpython editor)
  • Adding 2 inputs: button to export to csv and input for file destination.
  • Adding outputs for rows, columns