Function with variable x

hallo People,

I am trying to get a diagram from several formulas. Attached is only first steps of a huge process.

Input 1 has several numbers and input 2 with one input. The output for both input is the same! how can have several output if i have several inputs (each input has its own output). I couldn't manage to make it. any hint?

The output is highlighted in green. The problem is highlighted in RED

Thanks in advance!

j

_input_1.gh

_input_2.gh

  • David Stasiuk

    Hi nass...usually questions are posted in the discussion forum rather than as a blog post, so you might want to move this over there.

    If I understand your question correctly, you want to cross reference your two lists so that you get a unique output for every combination of inputs.  In this case, you are looking at having x and z be multiple variables.  There are a number of ways you can do this, and it all really depends on how you want your data organized in the output.  Take a look at these three approaches...one uses the cross reference component, and it creates a single list.  The next two use graft, one grafting the x value and the other the z value.  You can see how these output lists are organized.

    If you want to understand data structure better, you should take a look at these discussions:

    http://www.grasshopper3d.com/forum/topics/data-tree-examples

    http://www.grasshopper3d.com/forum/topics/path-mapper-help-1

    Good luck!

  • nass

    It works with Graph! thanks a lot