I want to create a curve by a series of points following their respective point numbers. However, the python code used in the Curve node doesn't work.
pts = hou.pwd().geometry().points()
pts_list = “”
for pt in pts:
x = pt.position()
y = pt.position()
z = pt.position()
pts_list = pts_list + str(x) + “,” + str(y) + “,” + str(z) + “ ”
print pts_list
Can anybody kindly help to take a look and advise on what's wrong?
Thanks!
Ji
[help] create a curve by a list of points
3518 2 1-
- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
-
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
-
- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
-
- Quick Links

