Ghpython move error

I’m working on moving breps / geometries, and I’m debugging on what went wrong.

I have 5 text (curves) which I fed into python.

if I choose only one curve and moving it in a loop, it works

  • but it’s running 13 times (assuming it’s based on the max(value) inherited from the curves

if I choose to randomly feed one curve and moving it in a loop, it becomes a mess

  • also running 13 times

I tried changing the input datatype and it output different options of messes, can any one help

text debug.gh (13.7 KB)

Python component is running 13 times because the longest input contains 13 elements

the thing is, with your python component setup (all inputs set to item access) it doesn’t really matter if you group them in line 7, because there’s a new iteration for each element, they are just not treated as a list:

my best advice is to first have a look at some tutorials on the topic, super basic ones, where it teaches you the main differences between access types, just to get a grasp of the very basics of that component, because writing those down probably takes longer than reading them somewhere/watching a youtube video about those


[edit] this is a very simple example with tree access, that maybe simplifies your process

text debug_Re.gh (16.0 KB)

→ it uses your code, and I assumed you wanted to move each and all texts exactly one time, that’s why the shuffled list instead of a pure random int