--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
I still don't understand how you can get pymel autocompletion in vim. I can't find anything on the subject on the web. I didn't quite get how to use the skeleton maya package to make it work...
If you have a more complete explanation it would be nice
Cheers
Kevin
This troubled me for a while. It turned out that vim ignored the PYTHONPATH variable that i had set from the bash terminal. I got it working by appending the path inside my .vimrc like this:
" maya.cmds
:python import sys
:python sys.path.append( "/usr/autodesk/maya2014-x64/devkit/other/pymel/extras/completion/py" )
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d19ec0dd-ff14-427d-a165-1c66b9752676%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pycharm is also very nice and I belive free for personal use nowadays. Marcus, have you been able to set up debugging in sublime?
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCs%2BB%2BKKu2i3rO1ZeW4f6Cs4FwnZVo%3DDDUXR6huK9zVwg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGkBUFc1CAUqkSdp_i1VuZYXR0OdgQ9QV1NnGx%3Dgt91Xo-u6WA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODsfZ-h-3hgbZEtBtQJo8VDPxPWV-%2BamLsjwhpM-hx_YQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA00xya6ps%2BLhySy5psKXsREuOcUtco6UJZaaHm0m5Hidg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODsfZ-h-3hgbZEtBtQJo8VDPxPWV-%2BamLsjwhpM-hx_YQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODsfZ-h-3hgbZEtBtQJo8VDPxPWV-%2BamLsjwhpM-hx_YQ%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/CAGkBUFdSoS%2B99tiT-X9Fz%2ByersAWJknUuY3NvnefejZkv29MKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBFs8frLC4xoVn7P1RAPUmX85EN5n6_JFYj_rt7SDmnKg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsQwTWtyMxRzpz%2BV08170msSFbjhUn6vL2s8L-YaKaBZrw%40mail.gmail.com.
Marcus, yes it's very similar to the tools you have for debugging in visual studio. And it's just as useful for developing externally to Maya, you can run your code directly from pycharm or Python Tools for VS in debug mode.
Another neat thing about pycharm that I don't think sublime has is that you can specify the datatype for arguments and return-type in the docstring or with one-line comments in instances where it can't figure out the type itself. It enhances the code completion quite a bit. Sorry for sounding like a salesman :p
I've never used pdb directly but that looks interesting.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2oEv73HTOmgxB%2BQrTh6WmLup4PYaQv_5-ojh-GGaZq7Q%40mail.gmail.com.
Hm, you mean to do stuff like contract programming?
def myfunc(arg):
# pre-condition
assert isinstance(arg, int)
output = arg + 1.0
# post-condition
assert isinstance(arg, float)
return output
By putting it in docstrings, you mean that it’d only be “asserted” in a “debug-mode” of sorts? The code-completion aspect of it seems interesting too.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGkBUFfsuW1x0PWMK2G0hP7nu3sbtXiZ%3DvjtiqUqOTO3wX7hSg%40mail.gmail.com.
It's only used for documentation and and picked for code-completion, you won't get any asserts. It does sort of the same as python 3 argument and return type definition that as far as I know has no impact on the executed code.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA7p8-7nyrFOgiOBsZyj7QijnZc%3Dp3v3CCw8e6F2k45rg%40mail.gmail.com.