Grasshopper

algorithmic modeling for Rhino

Hi,

I'm wondering how to create my custom component, I saw somes ways with other languages (VB I think) and I'd like to know if it was possible to transpose it to python ?

Views: 1017

Replies to This Discussion

Hi,

Thanks for replying. My question seems not to be clear : I use already python in GH, I create custom things by registering scripts, but I'd like to create a "real" GH component, not an editable script which looks like a component.

C# and VB are different languages that compile to the same Common Intermediate Language (CIL). GHA files are really .NET CIL assembly Dlls with a different extension. There are some projects to take Python to the .NET world and VisualStudio but I'm not sure if this is what you need.

Try looking up IronPython and Python Tool for Visual Studio. Don't know if those really bring the Python Synthax to CIL Compilers or just link to the Python libraries. For performance reasons you should still look into VB or C# anyway, because the Python implementation of the GH and Rhino SDK just wraps the original SDK in a Python layer. So even if IronPython compiles to CIL, this would add another layer of wrapping.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service