Trimesh python library usage on Windows

41 views
Skip to first unread message

Nic Sievers

unread,
Feb 5, 2020, 4:47:41 PM2/5/20
to Python Programming for Autodesk Maya
Hi, 

How would you be able to use a library such as Trimesh in Maya 2019, perhaps 2020?   Seems to be a pure python library.  


I did install trimesh via pip and added  PYTHONPATH = C:\python_27_amd64\files\Lib\site-packages.   But there is a runtime error (attached pic) importing in Maya which based on output is numpy related.   I did try reinstalling numpy but perhaps numpy has to be compiled in the same visual studio as Maya?  

I did see some mentions on this forum of using mayapy.exe pip.   Would that install a correct version of numpy?


thanks,
Nic
runtime.jpg

Justin Israel

unread,
Feb 5, 2020, 8:29:29 PM2/5/20
to python_in...@googlegroups.com
Even if trimesh is pure python, it lists alot of compiled requirements 

So that means the deps also need to be compiled for that specific Maya 



thanks,
Nic

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b2755c56-253a-4d21-8076-30bc4ca5114c%40googlegroups.com.

nsie...@google.com

unread,
Feb 6, 2020, 4:40:37 PM2/6/20
to Python Programming for Autodesk Maya
Thanks for the confirmation Justin.   I looked more into those extra libraries.   Numpy seems to be the only critical one, the others seem to be for added features if you want to use them.

Anyway, today I did end up finding a precompiled version of numpy and scipy for Maya 2018 that also works for 2019.  I have visual studio 2017 installed.  It looks like maybe you can compile to older build targets, is that correct?  So I could build them in VS 2017 for VS 2015, a version that will work with Maya 2019?

cheers
Reply all
Reply to author
Forward
0 new messages