algorithmic modeling for Rhino
GH_CPython is a CPython plugin for Grasshopper.
Website: https://github.com/MahmoudAbdelRahman/GH_CPython
Members: 68
Latest Activity: Jun 9, 2023
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.
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.
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
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
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
After further investigation it crashes when you feed it either <null> or <empty> values
This could be a really great tool however every time I select and input a Tree it freezes.
Autocomplete would also be hugely helpful!
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
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
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by
You need to be a member of GH_CPython to add comments!