Is there an easy way to connect to Maya so it can send commands?
Thx.
Hey Justin,
I've been trying to set up SublimeCodeIntel but I can't get it to work, according to ST2 it's installed. I've added the paths to the config file, though I don't get any auto completion. Even ctrl+shift+space doesn't work for bringing up the code completion manually.
Would you happen to know what might cause something like that?
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
Hey Justin,
Hmm..I just reinstalled Sublime and followed your steps and I still can't get it to work. The hotkey (ctrl+j) doesn't bring anything up. Infact, it doesn't even bring it up automatically. :/
import socket
port = 7002
sendST = 'import maya.cmds as mc;mc.polyCube()'
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('127.0.0.1', port))
sock.settimeout(5)
sock.send(sendST)
here is the error information
Traceback (most recent call last):
File "I:\workflow\python\b.py", line 5, in <module>
c = Telnet("", int(7002), timeout=3)
File "C:\Python26\lib\telnetlib.py", line 209, in __init__
self.open(host, port, timeout)
File "C:\Python26\lib\telnetlib.py", line 225, in open
self.sock = socket.create_connection((host, port), timeout)
File "C:\Python26\lib\socket.py", line 514, in create_connection
raise error, msg
socket.error: [Errno 10061]
[Finished in 4.1s with exit code 1]
c = Telnet("", int(port), timeout=3)
c.write(mCmd)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('127.0.0.1', int(port))
sock.settimeout(5)
sock.send(mCmd)
hi Justin, I installed the plugin send to maya, it's ok on my mac, but there is an error on windows,"Failed to communicate with Maya[Error 10061]"Do you know why?
This works for you? Is that your whole config file? I still can't get completion to work on Windows.This issue is still open here. https://github.com/Kronuz/SublimeCodeIntel/issues/162
I have installed sublime and sublimeMaya. It works but not echoing errors.And is it posible to return output from maya to sublime console?
After spending the morning trying to fix Eclipse/Pydev problems, I checked out Sublime. It doesn't have a separate list of functions and vars - why do people like it so much?
--
Can't get this to work... I can send commands to maya but the autocompletion of maya commands doesnt work.I keep getting the: "could not find data for Python blob 'maya.cmds'"Anyone still working on this? Im on win7 x64 with Maya 2013 x64 and got python26 x64 installed. Also have latest python27 x86 installed if that could be any problem?thank you!
C:/Python26/Lib/lib-dynload
It looks like this:{
"Python": {"python": 'C:/Python26/python.exe',
"pythonExtraPaths": ['C:/Python26/Lib/site-packages','C:/Program Files/Autodesk/Maya2013/devkit/other/pymel/extras/completion/py/']}}itertools, datetime and math is all importing without errors. And so does maya.cmds.Thanks for your help, much apprecciated!
Was seeing the issue in the ST2 console, complaining about the wrong architecture (or missing) SilverCity. I had to manually build it by changing into the Packages/SublimeCodeIntel/src directory and running ./build.sh
Unfortunately, pcre failed to compile with:
/usr/bin/ld: libpcre.a(pcre_compile.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
libpcre.a: could not read symbols: Bad value
I had to edit the build.sh and change line 18 from:
./configure --disable-shared && \
to
./configure --disable-shared --with-pic && \
Then my build completed, and SublimeCodeIntel worked right away.
For bulk indent/outdent, tab/shift tab will work on selected text, maintaining hierarchy of tabs.
No bulk commenting, but you should request it on Chris' forum. He's very responsive to requests.