@coni wrote:
Hi, I have this code, which returns the coordinates for only one 3dpoint, although I selected more points. How can I get the coordinates for each point that I select?
import rhinoscriptsyntax as rs
points = rs.GetObjects("referentiaza punctele",1)
for pt in points:
ptCoord = rs.PointCoordinates(pt)
x = ptCoord[0]
y = ptCoord[1]
z = ptCoord[2]print "x: %.2f, y: %.2f, z:%.2f" %(x,y,z)
Posts: 8
Participants: 3