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

Derive access to Rhino object from GH

$
0
0

Hi! I launch the same snippet of a code in the Rhino Python Editor and in the gh Python script editor component, for Rhino it works well whereas running it in Grasshopper it returns None. What I do wrong with gh

import rhinoscriptsyntax as rs
obj_id = rs.GetObject("Object", 8+16, True, True)
rh_obj = rs.coercerhinoobject(obj_id, True, True)
print rh_obj.Attributes

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles