MahmoudAbdelRahman / GH_CPython

CPython plugin for Rhino-Grasshopper
BSD 2-Clause "Simplified" License
174 stars 37 forks source link

How can I use "ghenv.Component" ? #25

Open strdesigner opened 6 years ago

strdesigner commented 6 years ago

Hi! I want to get iterative outputs by using "ghenv.Component.ExpireSolution(True)" as follows:

http://www.grasshopper3d.com/forum/topics/loops-in-gh-python (py_loop.gh)

In GH_Python, such script would walk fine and outputs are recomputed in each iterations. However, In GH_CPython, I recieved this message: AttributeError: 'fileInfo' object has no attribute 'Component'

Is it possible to use "ghenv.Component.ExpireSolution(True)" in the current version of GH_CPython?

MahmoudAbdelRahman commented 6 years ago

Hi @strdesigner, Thanks so much for the feedback, This feature is not available at the moment yet, but I'll try to make it work.

Best regards, Mahmoud.