Grasshopper

algorithmic modeling for Rhino

Dear Nathan.

I am trying to fill in a table containing the basic information needed to retrieve an object : 

  • the expected type of object to retrieve e.g. : 'mesh_FromPoints'
  • points count U
  • points count V
  • ...any other def params...

Slingshot doesn't seems to appreciate single row insert in a table.

Did it ever happen to you ?

 

Best,

Stan

 

 

Views: 261

Attachments:

Replies to This Discussion

Hello Stan,

I see you are grafting your inputs to the SQL Format Rows component.  Since you are supplying a single row, the merged list will work just fine.  No grafting necessary...

 

For example:

If you have a list that looks like this...

    0.  mesh_FromPoints

    1.  7.0

    2.  11.0

 

The SQL Format Rows will simply format the list items into a single string separated by commas:  "mesh_FromPoints, 7.0, 11.0"

 

If you want to have multiple rows in a similar format, you will want to input a data tree that looks like...

 

     {0}

          0.  mesh_FromPoints1

          1.  7.0

          2.  11.0

    {1}

          0.  mesh_FromPoints2

          1.  5.0

          2.  20.0

    {2}

          0.  mesh_FromPoints3

          1.  20.0

          2.  8.0

 

In which case the SQL Format Rows will give you a list of strings...

 

     0.  "mesh_FromPoints, 7.0, 11.0"

     1.  "mesh_FromPoints, 5.0, 20.0"

     2.  "mesh_FromPoints, 20.0, 8.0"

 

Hope this helps...

 

Nathan

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service