I would like to import Matlab engine to Rhino Python Editor. I have connected Matlab and Python on my computer using the Mathworks recomendations and it works in original Python shell, but not in Rhino Python Editor. When I run the standard “import matlab.engine” command it gives an error: No module named matlab.engine
Everything: Rhino, Matlab and Python are installed in their original directories.
thanks for reply. I have been googling in the meantime and found out that you are right. IronPython and .pyd files (in which Matlab engine is defined) are not compatible. Well, connecting such a big systems as Rhino and Matlab are may be a nice ‘to do’ topic for the future.
If you don’t mind doing some extra work you could write with CPython a server app that defines a protocol through which you could communicate with your matlab engine. In Rhino you’d have a client that would connect with that server app. Quite a bit of indirection, and suboptimal, but at least it would let you work on your project.