This is a python command shell for maya with auto complete
import pyshell
pyshell.main()
其实只需要pyshell.py这一个文件就行,rlcompleter2你可以从pip装,lz没有在windows下测试,windows下你可以参考python tips : rlcompleter & rlcompleter2 tab自动完成
另外,如果想加到maya菜单里,必须把globals()当参数传进去,utils.py 和 userSetup.py 里面有举例
global_vars = inspect.getouterframes(inspect.currentframe())[-1][0].f_globals
add_menu(label="Python Command Shell",command= lambda *x: __import__("pyshell").main(global_vars))
desired effect:
http://gfycat.com/WindyLeanDog
01/22/2016
- multiline pasting now working
01/05/2016
- auto complete not fully working yet