0, 5, 10, 15, 20
1, 6, 11, 16, 21
2, 7, 12, 17, 22
3, 8, 13, 18, 23
4, 9, 14, 19, 24
and if i'm here is because i'm not able... :)
can you help me?
thank you
…
nput parameter and then set the named values on the second?
protected override void BeforeSolveInstance() { Param_Integer param0 = Params.Input[0] as Param_Integer; Param_Integer param1 = Params.Input[1] as Param_Integer; param1.ClearNamedValues();
GH_Structure<GH_Integer> data = param0.VolatileData as GH_Structure<GH_Integer>; if (data.IsEmpty) return; foreach (GH_Integer value in data.AllData(true)) { switch (value.Value) { case 1: param1.AddNamedValue("First option for 1", 11); param1.AddNamedValue("Second option for 1", 12); param1.AddNamedValue("Third option for 1", 13); break;
case 2: param1.AddNamedValue("First option for 2", 21); param1.AddNamedValue("Second option for 2", 22); param1.AddNamedValue("Third option for 2", 23); break;
case 3: param1.AddNamedValue("First option for 3", 31); param1.AddNamedValue("Second option for 3", 32); param1.AddNamedValue("Third option for 3", 33); break; } return; } }
--
David Rutten
david@mcneel.com…
Added by David Rutten at 1:56am on December 18, 2013
ta.
Take the following example.
I have two curves referenced with a Crv Param this creates a single path with 2 items {0}(N=2).
If I divide these Curves by 10 segments I end up with 2 Paths of 11 points each {0;0}(N=11) and {0;1}(N=11)
If I want each point to be handled separately I can Graft a branch to hold each point. So I get 22 Paths looking like {0;0;0}(N=1), {0;0;1}(N=1).....{0;1;10}(N=1).
Each path is therefore the address of a particular item or items of interest.
The Param Viewer can be found Params>Special>Param Viewer and can be viewed either as a list of Paths or graphically by a double click.
Also note that the Fancy Wires display the structure of a stream of data. Single wire = Single Data Item, Double Wire = Multiple Data on single Path and Double Dashed Wire = Multiple/Single Data on Multiple Paths…