Grasshopper

algorithmic modeling for Rhino

Beginner Question,

 

Why is it that the following:

 

importrhinoscriptsyntax as rs

rs.LastCreatedObjects()

 

Works fine in the the Rhino script editor but yields the error "expected Guid, got UInt32" in the GH python component?

 

Is there another way to get the ID of the last selected object in the Python component?

Many thanks,

 

Arnoud

Views: 489

Replies are closed for this discussion.

Replies to This Discussion

Hi Arnoud,

It could be because this function was made to work with Rhino, not grasshopper document.
You can switch between these two and then use it. Also you have to use the rs.Command function before that so that LastCreatedObjects could return something.

Attachments:

Ah, I see. Thanks djordje!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service