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

Iteration over non-sequence of type Brep for rs.CopyObject

$
0
0

@Katsuya_Obara wrote:

I am writing simple script to multiply the zones to specified height (z-axis) specified times.
I get error Runtime error (TypeErrorException): iteration over non-sequence of type Brep at rs.CopyObject is executed. Since I don’t expect iteration happens at this code, I have no idea what is wrong. Can anyone tell me the reason? Below is the code.

import rhinoscriptsyntax as rs

def floorMultiplier(zone,height,number):
building=[zone]
for i in range(1,number+1):
print (i)
print (type(zone))
temp=rs.CopyObject(zone,[0,0,height*i]) <=I get error at this point
building.append(temp)

return building

AllZones=floorMultiplier(TypicalFloor,FloorHeight,FloorNumber)

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5783

Trending Articles