PythonForMayaSamples icon indicating copy to clipboard operation
PythonForMayaSamples copied to clipboard

OpenMaya in Jupiter Notebook

Open timkarlo opened this issue 2 years ago • 0 comments

In - Jupiter Notebook - I set the path to: sys.path.append ("C:\Program Files\Autodesk\Maya2022\Python37\Lib\site-packages")

run this: import maya.OpenMaya as om worldOrigin = om.MVector(0,0,0)

but error came:

AttributeError: module 'maya.OpenMaya' has no attribute 'MVector'

What I am doing wrong?

timkarlo avatar Mar 16 '22 13:03 timkarlo