I'm a beginner and I would like to make a while loop in python. I have two intersecting coplanar curves and I would like to move the first curve a certain vector on the common plane until they no longer intersect. I tried something like:
vec = [0,0.1,0]
int = True
while True:
move=rs.MoveObject(curve1,vec)
int=rs.CurveCurveIntersection(curve1, curve2)
if int = False:
break
Anyone knows what am I doing wrong? Thanks in advance!
intas a variable name, you are masking the built-in type here.==instead of=:if int == False:(or justif not int:). Beyond that and theint@MartijnPieters mentioned, you'll need to tell us specifically what's happening (errors? show us the traceback) and how that's different from the output you expect to seeif not rs.CurveCurveIntersection(curve1, curve2): breakand lose theintvariable altogether.