Skip to content

ver007/pyshell

 
 

Repository files navigation

python command shell for maya

This is a python command shell for maya with auto complete

Usage

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))

Current Status

desired effect: http://gfycat.com/WindyLeanDog gfycat

Changelog

01/22/2016

  • multiline pasting now working

01/05/2016

  • auto complete not fully working yet

About

python command shell for maya with rlcomplete2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%