algorithmic modeling for Rhino
HI
looking to create a loop in python inside grasshopper to do the following
copy object in x direction with the following condition ?
A, B, C, D = brep A, brep b, etc.. #as a list of rep
select brep (brerp width = 1 unit)
i = 10
According to the following logic
IF A
A: C or A (random select)
B: C or A (random select)
C: D or B (random select)
D: B or D (random select)
Than choose c or A
Choose randomly the module C or A and move of 2 units (i)
Than
If C, choose D or B and move of 3 units
If A, choose C or A and move of 3 units
Than
any help appreciated
thanks
s
Tags:
Replies are closed for this discussion.
I almost wrote an answer, but your question is confusing. It's hard to understand what you want to know.
You should try rewriting your question, and be more specific about what you are trying to understand or what is the overall task you are trying to complete.
Some things that are unclear in your question: do your breps change, or are they always the same? Are there always 4 of them? How will you define the set of random choices for each one? Will the choices always be the same? What is the output?
Hi Benjamin,
Thanks. yes only 4 brep (A,B,C,D)
the first operation is to choose a berp randomly and place it on 0,0,0. and after if brep A for example choose randomly C or A and place it on 0,1,0 than do the same 10 times.
let me know if clear
thanks
S
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by