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

Script generates duplicate objects

$
0
0

@robertowhite wrote:

Hi all-
I quickly whipped up this script to run unrollSrf on multiple objects. Got the job done but rs.UnrollSurface creates geometry that I have to manually delete after moving. Also the explode=False switch didn't seem to work for me, which is why I had to run JoinSurfaces.

Does one have to create geometry, move it, then delete the originals?

Does this make sense?

thanks for your help

import rhinoscriptsyntax as rs

polySrf = rs.GetObjects("Select polysurfaces to unroll", preselect=True)
xMove = 0

for i in polySrf:
    x = rs.JoinSurfaces(rs.UnrollSurface(i))
    rs.MoveObject(x,((xMove,-100,0)))
    xMove += 80

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5875

Trending Articles