algorithmic modeling for Rhino



GH_CPython is a CPython plugin for Grasshopper.

Members: 52
Latest Activity: Sep 4

Discussion Forum

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.

Grasshopper-python communication problem

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 Apr 30.

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 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\

Comment by Max Marschall on March 21, 2018 at 5:31pm

Just realized that matplotlib also works with this...amazing! Great job Mahmoud!

Comment by Mahmoud AbdelRahman on December 12, 2017 at 11:11pm

Thanks  kheireddine Naib,  

The same to you. 

Comment by kheireddine Naib on December 4, 2017 at 3:16am

allah ybarek fik 


Members (52)






  • Add Photos
  • View All


  • Add Videos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service