I don’t want to add any curve on branch 10} i just need to have an empty branch {10} out component CrvCp
if You know how to create such a structure that would most likely solve my problem
I cannot manage list collection manually , this doesn’t solve my problem.
As is said i need to find a way to do it with data managing components being DATA1 and DATA 2 the result of a script. ( in the example they were internialized just for brevity ).
I want to let it parametrically detect the missing list numbers through a script and add it without manually typing inside the path mapper the number after manually checking what is missing.
could you please share your last example as gh file? As for your first example - if I understood correctly your challenge - the solution below worked as you desire.
from Grasshopper.Kernel.Data import GH_Path as Path
ep = x.Path(x.BranchCount-1)[1]
pths = [Path(0,i) for i in range(0,ep+1)]
for i in pths:
if i not in x.Paths:
x.Add("",i)
a = x