Communication between Rhinoscript and Python

Hello there,
is it possible to run a python script with arguments from inside a rhinoscript?.

For context: i am sitting in front of some long rhinoscripts where i am sure that i can rewrite some time intensive parts in python to be much more efficient.
Only thing is that there is a lot of uncritical stuff around that parts that i would rather not rewrite.

Is there someting like Result = MyPythonAttempt( Arg1, Arg2) in Rhinoscript and how would the python script need to be designed?

Hi @footMILL,

I ran into similar issue many times.
It is not very straight-forward but there is a way to do this
Check out this explanation and sample:

hth,

–jarek

Thank you so much!
I´ll take a look into it