# Ghpython BUG？

**URL:** <https://discourse.mcneel.com/t/ghpython-bug/15138>\
**Category:** Scripting\
**Created:** [December 21, 2014, 1:29pm UTC](https://discourse.mcneel.com/t/ghpython-bug/15138 "2014-12-21T13:29:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![603419608](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/603419608/32/487406_2.png) [@603419608](https://discourse.mcneel.com/u/603419608)\
**Post date:** [December 21, 2014, 1:29pm UTC](https://discourse.mcneel.com/t/ghpython-bug/15138/1 "2014-12-21T13:29:43Z")

</div>

This is ghpython components bug?Picking curve in rhino, out does not output, but can print  
 ![](https://sea3.discourse-cdn.com/mcneel/uploads/default/14831/d297ead78c6c58aa.jpg) [ghpython.gh](https://sea3.discourse-cdn.com/mcneel/uploads/default/14832/cc21e566e996de0e.gh) (6.7 KB) no, out does not output, but can print

---

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [December 22, 2014, 6:09pm UTC](https://discourse.mcneel.com/t/ghpython-bug/15138/2 "2014-12-22T18:09:05Z")

</div>

Hi 603419608

This is not a bug. For this to work, you need to copy all geometry to Grasshopper before you pass it out (with RhinoScriptSyntax or not). I am attaching an example.

If you can, I suggest that you do not use rs commands that block the UI with this method. Otherwise, this will really not feel Grasshopper-y and would make using your scripts much more error-prone for your users.

I hope this helps,

## Giulio

Giulio Piacentino  
for Robert McNeel & Associates  
[giulio@mcneel.com](mailto:giulio@mcneel.com)

[ghpython-objects-by-layer.gh](https://sea3.discourse-cdn.com/mcneel/uploads/default/14856/7850e5ecacd60cd5.gh) (7.1 KB)

---

<div class="post-metadata">

**Author:** ![603419608](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/603419608/32/487406_2.png) [@603419608](https://discourse.mcneel.com/u/603419608)\
**Post date:** [December 22, 2014, 7:28pm UTC](https://discourse.mcneel.com/t/ghpython-bug/15138/3 "2014-12-22T19:28:14Z")

</div>

Hi Giulio  
Thank you very much for your help,I have another question,You say rs commands are rs.command () mean?

```
Thanks
```

---

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [December 23, 2014, 9:24am UTC](https://discourse.mcneel.com/t/ghpython-bug/15138/4 "2014-12-23T09:24:49Z")

</div>

> [@piac](#):
>
> rs commands that block the UI

Yes, I mean methods, functions or anything that blocks the User Interface (UI). For example, rs.GetObjects() blocks the Rhino UI.

## Giulio

Giulio Piacentino  
for Robert McNeel & Associates  
[giulio@mcneel.com](mailto:giulio@mcneel.com)

---

<div class="post-metadata">

**Author:** ![603419608](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/603419608/32/487406_2.png) [@603419608](https://discourse.mcneel.com/u/603419608)\
**Post date:** [December 23, 2014, 9:34am UTC](https://discourse.mcneel.com/t/ghpython-bug/15138/5 "2014-12-23T09:34:15Z")

</div>

Thank you very much
