Grasshopper

algorithmic modeling for Rhino

Information

GH_CPython

GH_CPython is a CPython plugin for Grasshopper.

Website: https://github.com/MahmoudAbdelRahman/GH_CPython
Members: 48
Latest Activity: May 1

Discussion Forum

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

Comment

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

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

hi

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 (plt.show()) it. The error message is

1. Traceback (most recent call last):
File "C:\GH_CPython\PythonFileWritten_11.py", 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

matplotlib.gh

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\PythonFileWritten_7.py", 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\PythonFileWritten_7.py

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 

Comment by Mahmoud AbdelRahman on September 21, 2017 at 6:50am

Hi everyone, 

Thanks so much for joining this group. 

Any comments, feedback or contribution are most welcome to improve this tool, I'm working now on enabling RhinoScriptSynatx module, I have an idea to do this and I wish that everything goes well. 

Thanks so much. 

Mahmoud Abdelrahman

 

Members (48)

 
 
 

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service