Houdini script connecting multiple sphere

input=hou.pwd().inputs()[0]

points=input.geometry().points()
x=len(points)

for i in range(0,x):

pos=points[i].position()
pos_str=str(pos)[1:-1]

if i==0:

y=pos_str

else:

y=y+” “+pos_str

return y

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s