algorithmic modeling for Rhino
Hi Fabio,
You the CopyObject function instead of MoveObject one. Replace your last line with:
duplicate_curve1.append(rs.CopyObject(curve1, (0,0,i*20)))
Hi,
Built-in "index" function would return an index of supplied object in your list. In this case it would be guid of your curves, that needs to be supplied.
What you need actually is SelectObjects rhinoscriptsyntax function, which requires guids of your copied curves, not its indices. Replace the last three lines of your upper code with:
listSelCurves1 = []
for i in range(0,len(duplicate_curve1),3):
listSelCurves1.append(duplicate_curve1[i])
rs.SelectObjects(listSelCurves1)
Please attach your .py/.gh files too, for any future issues.
I would also recommend reading the Rhino Python primer.
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