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

Get error when I try to use Rhino.CopyObject

$
0
0

@Katsuya_Obara wrote:

I am trying to manipulate the object by Rhino.CopyObject command.
However, I get 'namespace#' object attribute 'CopyObject' is read-only.
Does anyone know what this means and how to fix it?
I added the rhino and gh file with python code below.

import rhinoscriptsyntax as rs
import Rhino

def floorMultiplier(zones,height,number):
    building=[zones]
    for i in range(1,number+1):
        for zone in zones:
            temp=Rhino.CopyObject(zone,[0,0,height*i]) <=I get error here
            building.append(temp)

    return building

AllZones=floorMultiplier(TypicalFloor,FloorHeight,FloorNumber)

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5778

Trending Articles