Hi, Installed pymel 1.0 manually. (~/PYMEL)... And generated the pi files for Wing.(Ian Jones post)
I've setup autocompletion in Wing's preference folder to the directory containing the pi files. (~/extras/complete) But auto completion isn't working for me. import pymel.core as pm Wing auto completes pymel.core... pm.bin...does not auto complete...to binding.... If I analyze statistics in Wing I get Interpreter: /autodesk/maya2009-x64/bin/mayapy Effective Python Path: /home/raven0us/work/python /home/raven0us/PYMEL /autodesk/maya2009-x64/lib/python2.5zip /autodesk/maya2009-x64/lib/python2.5 /autodesk/maya2009-x64/lib/python2.5/plat-linux2 /autodesk/maya2009-x64/lib/python2.5/lib-tk /autodesk/maya2009-x64/lib/python2.5/lib-dynload /autodesk/maya2009-x64/lib/python2.5/site-packages need some help. Kind regards Sajeev On Jan 7, 1:29 pm, Chad Dombrova <[email protected]> wrote: > sorry, i've been pretty swamped. as adam pointed out it is currently in our > github repo. the maintenance package is not included in the released zips > because it contains scripts we use to prepare the releases, which is only of > interest topymeldevelopers. in the next beta of 1.0 we'll be including both > .py and .pi stub files, so there will no longer be any need for end users to > worry themselves about generating them. > > -chad > > On Jan 6, 2010, at 2:01 PM, ryant wrote: > > > I searched for maintainence in thepymeldocumentation and it returned > > no results talking about the maintainence module. I also imported the > >pymelmodule in maya and none of the modules show a maintainence > > module. Can you give more detail of where to find it? > > > Ryan > > > On Jan 5, 12:22 pm, Miguel González Viñé <[email protected]> wrote: > >> Thanks Chad, > > >> I've tried your examples and works all but c2 (a2 and b2 work too), > >> even if I haven't set the "pi" folder inWingpreferences. It looks > >> likeWingexamine the python modules you import. I've tried it in > >> ecclipse too and a2 and b2 works perfectly. I don't know why this > >> doesn't work for you. > > >> In theWingcase, I think this is happening becausepymelis creating > >> functions and classes dynamically. Maybe I'm gonna say a nonsense but > >> If instead of creating functions "on the fly",pymelcreates function > >> to a file from maya.cmds, etc, writing the help and all the code, when > >> you installpymel, like the maintenance module but with functions and > >> classes, it will work, at least forwing, I don't know if it'll work > >> for ecclipse. > > >> But maybe this is a crazy thing. > > >> Best, > >> Miguel. > > >> On Tue, Jan 5, 2010 at 8:12 PM, Chad Dombrova <[email protected]> wrote: > > >>> just did some experimenting and talking with Paul. eclipse supports > >>> completion of assigned variables, but only if those variables were > >>> directly > >>> assigned an instantiated class. > > >>> for example, the following variables will support completion: > > >>> a1 = str('bar') > >>> b1 = list() > >>> c1 = pm.nt.Transform('bar') > > >>> but these will not: > > >>> a2 = 'bar' > >>> b2 = [] > >>> c2 = pm.sphere() > > >>> however, since i'm not awinguser i don't know if what you are trying to do > >>> is supported or not. ipython supports completion for variables assigned > >>> in > >>> the latter fashion, so i know it is technically possible. pymelis a > >>> complex beast, so first try playing around with built-in python types ( > >>> for > >>> example, the variables a1, b1, a2, and b2, above) and let us know what you > >>> find out. > > >>> -chad > > >>>> Thanks! > > >>>> On Tue, Jan 5, 2010 at 6:45 PM, Chad Dombrova <[email protected]> wrote: > > >>>>> I should also note, for anyone working on thepymelproject, that > >>>>> "maintainence" is actually spelled "maintenance" > > >>>>> wow, that's embarrassing. 4 years of liberal arts college down the > >>>>> drain > >>>>> :) glad we beta tested! > >>>>> -chad > > >>>>> On Tue, Jan 5, 2010 at 10:25 AM, Ian Jones <[email protected]> > >>>>> wrote: > > >>>>>> Yes. Though it won't be installed via easy_install. Only a manual one. > >>>>>> You can downloadpymeland just copy the maintainence module into your > >>>>>> path to create them with: > > >>>>>> import maintainence > >>>>>> maintainence.stubs.pymelstubs(extension='pi') > > >>>>>> Ian > > >>>>>> I can also post > >>>>>> 2010/1/5 Miguel González Viñé <[email protected]>: > > >>>>>>> Hi Chad, is it included in beta2? I can't find the script. Is there > >>>>>>> another beta released? > >>>>>>> Thanks! > > >>>>>>> On Tue, Jan 5, 2010 at 5:45 AM, Chad Dombrova <[email protected]> > >>>>>>> wrote: > > >>>>>>>> a script is included with the development version ofpymel1.0 for > >>>>>>>> creating reliable pi files for both maya andpymelpackages. > > >>>>>>>> On Jan 4, 2010, at 11:08 PM, ryant wrote: > > >>>>>>>>> I am looking into how to generate the pi files thatWingneeds for > >>>>>>>>> auto completion. I am unsure how to use the generate_pi.py file that > >>>>>>>>> comes withWingto do this. The files I need to convert I believe are > >>>>>>>>> the ones at this path: > > >>>>>>>>> C:\Program Files\Autodesk\Maya2010\Python\lib\site-packages\maya\ > > >>>>>>>>> If I want to generate the maya.cmds pi file where is the .pyc file > >>>>>>>>> for > >>>>>>>>> maya.cmds? > > >>>>>>>>> When I use the generate_pi.py file it doesnt generate anything > >>>>>>>>> useful. > >>>>>>>>> Using the command prompt I type this in: > > >>>>>>>>> C:\Program Files\Autodesk\Maya2010\Python\lib\site-packages\maya> > >>>>>>>>> python "C:\Program Files\WingIDE 3.2\src\wingutils\generate_pi.py" > >>>>>>>>> OpenMaya.pyc OpenMaya.pi > > >>>>>>>>> This then results in the following in the Command Prompt: > > >>>>>>>>> Traceback (most recent call last): > >>>>>>>>> File "C:\Program Files\WingIDE 3.2\src\wingutils\generate_pi.py", > >>>>>>>>> line 1028, > >>>>>>>>> in <module> > >>>>>>>>> ProcessModule(modname, magic_code, metadata, file=f) > >>>>>>>>> File "C:\Program Files\WingIDE 3.2\src\wingutils\generate_pi.py", > >>>>>>>>> line 819, i > >>>>>>>>> n ProcessModule > >>>>>>>>> exec('import %s' % mod_name, namespace) > >>>>>>>>> File "<string>", line 1, in <module> > >>>>>>>>> ImportError: Bad magic number in .\OpenMaya.pyc > > >>>>>>>>> It does generate a OpenMaya.pi file which is completely empty. > > >>>>>>>>> Can someone point me in the right direction of how to generate the > >>>>>>>>> pi > >>>>>>>>> files needed forWingproperly? > > >>>>>>>>> Ryan > >>>>>>>>> Character TD > >>>>>>>>>www.rtrowbridge.com/blog > >>>>>>>>> NaughtyDog Inc. > > >>>>>>>>> -- > >>>>>>>>>http://groups.google.com/group/python_inside_maya > > >>>>>>>> -- > >>>>>>>>http://groups.google.com/group/python_inside_maya > > >>>>>>> -- > >>>>>>>http://groups.google.com/group/python_inside_maya > > >>>>>> -- > >>>>>>http://groups.google.com/group/python_inside_maya > > >>>>> -- > >>>>>http://groups.google.com/group/python_inside_maya > > >>>>> -- > >>>>>http://groups.google.com/group/python_inside_maya > > >>>> -- > >>>>http://groups.google.com/group/python_inside_maya > > >>> -- > >>>http://groups.google.com/group/python_inside_maya > > > -- > >http://groups.google.com/group/python_inside_maya > >
-- http://groups.google.com/group/python_inside_maya
