0
$\begingroup$

I want to use the pymesh library inside Blender because I think it could be fun to play with the functions of pymesh and model in blender in the same time. But I am having some problem...

I managed to run the simple script : import pymesh

To do this, I copied and paste my pymesh directory into the blender/scripts/module one.

But then, pymesh doesn't recognize any functions :

import pymesh pymesh.test()

Error is : AttributeError: module 'pymesh' has no attribute 'test'

Any idea ?

$\endgroup$
  • $\begingroup$ Copying non trivial modules into a folder is no way to install. See blender.stackexchange.com/questions/5287/… I would recommend install pymesh to (matching version to blender) to system (or venv) python, then remove (rename) blenders python folder . When you start blender it will run the system python. $\endgroup$ – batFINGER Aug 1 at 8:20
  • $\begingroup$ So now I have installed pymesh in my /usr/share/blender/scripts/modules/PyMesh directory. I added the /usr/share/blender/scripts/ directory to my user preferences in the scripts case. The problem remains the same, I can import pymesh but I can't use any of the functions. $\endgroup$ – street-poney Aug 1 at 9:53
  • $\begingroup$ My recommendation is Install the same version of python on your system. (or make an venv using your blender python). Install pymesh to that version of python. Rename the python folder in (folder where blender exe is)/2.81/python to _python. Start blender, it will use the system python with same version.subversion $\endgroup$ – batFINGER Aug 1 at 11:05
  • $\begingroup$ Is it possible that pymesh cannot be installed in python 3.7 ? $\endgroup$ – street-poney Aug 1 at 11:34
  • $\begingroup$ I have managed to install pymesh with python 3.7 using a wheel file accessible here github.com/PyMesh/PyMesh/issues/133 $\endgroup$ – street-poney Aug 1 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.