algorithmic modeling for Rhino



GH_CPython is a CPython plugin for Grasshopper.

Members: 68
Latest Activity: Jun 9, 2023

Discussion Forum

Grasshopper-python communication problem 1 Reply

hi, sorry but I'm new with this kind of components. I would like to use grasshopper components in python but my script doesn't work. Can anyone help me?This is my problem, it seems that grasshopper…Continue

Started by domenico gaudioso. Last reply by Donny Joe Jun 24, 2020.

Wallacei X - GH_CPython problem!

Hi, I have some trouble in using Wallacei X and GH_CPython plug-in for Grasshopper. When I run the Wallacei X interface, the GH_CPython become red and show this warning: " 1. Traceback (most recent…Continue

Started by Angelo Jul 16, 2019.

GH_CPython installation

Hello!Looks great and i would love to try it out but keep running into installation problems with this error:Object: Gh_CPythonComponent (level 1){  Exception has been thrown by the target of an…Continue

Started by Rusne Sileryte Feb 1, 2018.

Comment Wall


You need to be a member of GH_CPython to add comments!

Comment by Thomas Chu on August 24, 2022 at 2:46am

Hello everyone, how do I use rhinoscriptsyntax with CPython? How do I install the module? Thanks in advance.

Comment by Juan Sebastián Gutiérrez Torres on July 13, 2020 at 1:22pm

Hello everyone,

I want to use this component to call and retrieve data from a script in Matlab. Nevertheless, the component is not working and got this issue (see attached image)

Thank you very much for tour help 

Comment by MICKY CHENG on March 19, 2020 at 8:08am

Hello Mahmoud,

Is there any solution to solve this problem? I implement a such simple code but it is running so slow... (The interpreter is python3.7)

Comment by YU on September 4, 2019 at 3:45am

Hi Mahmoud, 

thank you for the plugin!

I have a question regarding the output data type.

I am using the librosa library to read and analysis sound file. 

However, the output "stft" should be a list of float numbers.

But it seems like it tooks extra and slow computing while I connect the output to the num param.

I am not sure why this slow computing happened. If you have any thoughts on this? thanks 

Comment by Eliot on May 1, 2019 at 4:25pm


I recently used this component so i'm new with it and need help

I have an operation that I want to repeat for my different inputs

for example :
I need a code to do this once for x and once for y once for z and once for u and give all the answers 

Comment by Francisco on April 6, 2019 at 11:32am

Hi Mahmoud, 

I'm trying to run a script to modify an external file but process the data inside Grasshopper. I developed a script that allows me to do so if I'm working directly with python but I struggled when trying to integrate the script into GH. I tried using your component and pair it up with Anaconda, but it is not recognizing some dependencies.  Any chance you can identify the reason as to why the script is not running? I'm working with Python 3.7

Comment by Charles Fried on December 18, 2018 at 7:50am

After further investigation it crashes when you feed it either <null> or <empty> values

Comment by Charles Fried on December 17, 2018 at 9:36am

This could be a really great tool however every time I select and input a Tree it freezes.

Autocomplete would also be hugely helpful!

Comment by Max Marschall on May 21, 2018 at 2:27am

Hi again,

Is there a way to pass matplotlib axes objects? I want to define a graph in one component, then pass it to another component in order to visualize ( it. The error message is

1. Traceback (most recent call last):
File "C:\GH_CPython\", line 1, in <module>
exec('ax = AxesSubplot(0.125,0.11;0.775x0.77) \nshow = True \n\nclass fileInfo:\n def __init__(self):\n self.filePath = "C:/GH_CPython"\n self.fileName = "unname"\nghenv = fileInfo()\n\n\n')
File "<string>", line 1
ax = AxesSubplot(0.125,0.11;0.775x0.77)
SyntaxError: invalid syntax

gh file attached

Comment by Max Marschall on May 21, 2018 at 2:15am

Hi Mahmoud, is this the right place to post questions/issues?

If so, is it possible to pass dictionaries between CPython components? The error I'm getting below is:

1. Traceback (most recent call last):
File "C:\GH_CPython\", line 1, in <module>
exec('output_ = None\n_input = [\'a\': 1] \n\nclass fileInfo:\n def __init__(self):\n self.filePath = "C:/GH_CPython"\n self.fileName = "unname"\nghenv = fileInfo()\n\n\n')
File "<string>", line 2
_input = ['a': 1]
SyntaxError: invalid syntax

PS: There is no file C:\GH_CPython\


Members (68)






  • Add Photos
  • View All


  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service