Can't import external python code in Maya

Can't import external python code in Maya

Anonymous
Not applicable
630 Views
1 Reply
Message 1 of 2

Can't import external python code in Maya

Anonymous
Not applicable

Hi everyone,

I'm trying to link external python code that contains 'dlib' library to Maya. I've tried the simple import way: 

 

import sys
sys.path.append('D:\Python files\RealTimeTrack')
import landmark
landmark.shape()

 

but it doesn't work since Maya doesn't recognize dlib library. What should I do in this case? Please suggest and thank you in advance.

 

0 Likes
631 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I don't have this library so I can't test it myself. I guess you should put dll in a path Maya could load. maya\bin should be fail safe most of the time. And make sure it is compiled with the same VS compiler as Maya(2015~2017 VS2012, 2018 VS2015).

 

Yours,

Li

0 Likes