Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5877

Python script print multiple looped object while scaling

$
0
0

@calgre wrote:

import rhinoscriptsyntax as rs
#x = input mesh
for i in range(0,1000000):
E = rs.ScaleObject(x,rs.MeshVolumeCentroid(x),(i/100,i/100,i/100),True)
if rs.MeshVolume(E)[1]*(0.87) >= 100:
break
print(E)

why this print ONE guid of E scaled mesh, but the loop prints me out in rhino n(loops)-objects??
thank you
Nicolas

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5877

Trending Articles