Grasshopper

algorithmic modeling for Rhino

I'm using the python component and it seems that the rs.copyobject is not working.

Can anyone confirm this?

Regards,

M

Views: 460

Replies to This Discussion

That's strange!! I am getting an error of non-iterative or not valid GUID provided in Gh. The code works in the python editor though.


import rhinoscriptsyntax as rs

x = rs.GetObject()
list =[]

y = rs.CopyObject(x,(0,0,10.0))
list.append(y)
print list

You could use RhinoCommon instead.

Best,

M. 

Thanks Marios

I didn't know i was supose to create a list to store the copy.

thanks again,

M

You don't need to. I just have a habit of creating lists. either way  rs.CopyObject is not working for me too (inside GH).

m.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service