Hey
it is better you share your code snippet,but,
you can use cmds in this way first:
import maya.cmds as cmds
import pymel.core as pm
then :
cmds.about()
pm.about()
good luck
--
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/7d4520ac-cace-4462-b283-999ab65a44b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7d4520ac-cace-4462-b283-999ab65a44b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Bests,madoodia
ok,
did you use import pymel.core as pmc
in external python interpreter?
i have another problem in Maya2014 (script editor) but when i import pymel.core as pm it give me a error dialog :
but it works, when i run for example:
pm.spaceLocator()
i added C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\
to my PYTHONPATH
but when run maya.standalone.initialize()
in external python interpreter it give me error dialog.
and not work
same as import pymel.core as pm
.
I interested to know why these happens inside and outside of maya2014 too.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6eabd775-454a-42d5-bfc2-421fb7d78b38%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7d4520ac-cace-4462-b283-999ab65a44b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Bests,madoodia
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6eabd775-454a-42d5-bfc2-421fb7d78b38%40googlegroups.com.
--Bests,madoodia
I test it too:
this is my result:
C:\Users\madoodia>mayapy
Python 2.7.3 (default, Aug 1 2012, 16:33:56) [MSC v.1600 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import maya.standalone
>>> maya.standalone.initialize()
Registered E:\Madoodia\_GitHub\pyblish-maya\pyblish_maya\plugins
>>> import pymel.core as pm
pymel.internal.factories : INFO : MFnDagNode.model is deprecated
Warning: file: C:/Program Files/Autodesk/Maya2014/scripts/startup/initialStartup
.mel line 192: Y-axis is already the Up-axis
pymel.internal.startup : ERROR : could not perform Maya initialization sequence:
failed on namedCommandSetup.mel: Error occurred during execution of MEL script
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/90f53dac-d005-421d-9cdc-a152e7e1f5ae%40googlegroups.com.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/6eabd775-454a-42d5-bfc2-421fb7d78b38%40googlegroups.com.
--Bests,madoodia
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/90f53dac-d005-421d-9cdc-a152e7e1f5ae%40googlegroups.com.
--Bests,madoodia
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a9da9681-68d0-4874-987e-0d905d948068%40googlegroups.com.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/90f53dac-d005-421d-9cdc-a152e7e1f5ae%40googlegroups.com.
--Bests,madoodia
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a9da9681-68d0-4874-987e-0d905d948068%40googlegroups.com.
--Bests,madoodia
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1c2e30a0-d04c-4ac9-9484-cd554ee2ecdf%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
--
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/CABPXW4gqSbDXKJLqXNVUDF-AoxerJY83XOKZw2Low%3D3uWRWz4A%40mail.gmail.com.
Can you give Full name of book?or give any link of the page?
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADvbQwKLZuKLs4aDwuG_DyrOixmtNJ2p%3DcfJFMkmuSqUsYWPtQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3uQHVddpcFL2LtMHBtEGg6ECF9HR-E5yakomtwXvnOpw%40mail.gmail.com.
Interesting... That should work, so I'll take a look when I'm at a computer with Maya, but as a workaround, what happens if you just do "import pymel.core" without the maya.standalone.initialize()?
For me, i have the error (Error Dialog) in maya too, when i use this command:import pymel.core
orimport pymel.core as pm
but i don’t know tushar sankhala’s error.
and i could not get the book.
Geordie Martinez, if you have the book please share that page.
thanks
Interesting... That should work, so I'll take a look when I'm at a computer with Maya, but as a workaround, what happens if you just do "import pymel.core" without the maya.standalone.initialize()?
--
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/CAAssL7bZFGWp9Wg16tCJMYRnHDrEOcEbLwBzMpcPtzy1j%3DSniw%40mail.gmail.com.
--
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/5e6367b3-c59e-4395-9094-ad8611207964%40googlegroups.com.
To fully understand the problem, would it be possible to post a reproducible?
For example.
$ cd c:\program files\autodesk\maya2016\bin
$ mayapy
>>> from maya import standalone
>>> standalone.initialize()
>>> from pymel import core
...
Hello everyone,I'm having the same issue and I was wondering if anyone found the solution for the import error?
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/81541c08-6d56-4753-b9d1-6ed09d500372%40googlegroups.com.