Grasshopper

algorithmic modeling for Rhino

Information

GH_CPython

GH_CPython is a CPython plugin for Grasshopper.

Website: https://github.com/MahmoudAbdelRahman/GH_CPython
Members: 42
Latest Activity: yesterday

Discussion Forum

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.

Comment Wall

Comment

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

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

Comment by Blurp _ Dna on September 4, 2017 at 8:21am

I downloaded the new version.

Comment by Mahmoud AbdelRahman on September 4, 2017 at 8:04am

This is great !. 

Well done. 

I have modified the unintended purple color that's appeared. 

Thanks so much. 

 

Comment by Blurp _ Dna on September 4, 2017 at 7:54am
 

Members (42)

 
 
 

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2018   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service