You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
My main suggestion at present would be to write the code in a file, and run it with the RunPythonScript command. Make sure not to use any user-interface related commands, such as GetObject() or TurnOnGrips, as they are not usable within a pure-functional environment such as Grasshopper. When the code is done and testes, I'd suggest to move it to the component. There are alternatives, such as importing external modules, etc. Changing the editor altogether appears to be a titanic effort (all the interop, etc) but it would actually be possible, just very low in the list of priorities.
SharpDevelop is already the suggested way to edit Windows Forms: http://python.rhino3d.com/threads/483-Sharpdevelop-for-Windows-Forms
@ManiuX Which IDE are you using the most? (We all have preferences and I'd have to start somewhere looking how they provide external editing).
Also, I do not think that a simple text editor will help, and I did not write the editor that is currently used in ghPython. However, I might be able to help a bit in some specific areas if you could help me highlighting key problematic features.
@piac I used to use Emacs. But I'm now reading my Master degree so that I do not write python code very often. I think it'll be much better if you could propose a vote on rhino python forum.
Activity
piac commentedon Jul 4, 2012
My main suggestion at present would be to write the code in a file, and run it with the RunPythonScript command. Make sure not to use any user-interface related commands, such as GetObject() or TurnOnGrips, as they are not usable within a pure-functional environment such as Grasshopper. When the code is done and testes, I'd suggest to move it to the component. There are alternatives, such as importing external modules, etc. Changing the editor altogether appears to be a titanic effort (all the interop, etc) but it would actually be possible, just very low in the list of priorities.
SharpDevelop is already the suggested way to edit Windows Forms: http://python.rhino3d.com/threads/483-Sharpdevelop-for-Windows-Forms
piac commentedon Oct 23, 2013
@ManiuX : how would you envision this to happen? Should it just be possible to create .Net .dlls and load them in Grasshopper?
xarthurx commentedon Oct 26, 2013
@piac Yes, probably.
piac commentedon Oct 28, 2013
@ManiuX Which IDE are you using the most? (We all have preferences and I'd have to start somewhere looking how they provide external editing).
Also, I do not think that a simple text editor will help, and I did not write the editor that is currently used in ghPython. However, I might be able to help a bit in some specific areas if you could help me highlighting key problematic features.
Thanks for both things!
xarthurx commentedon Nov 4, 2013
@piac I used to use Emacs. But I'm now reading my Master degree so that I do not write python code very often. I think it'll be much better if you could propose a vote on rhino python forum.