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 in Wing preferences. It looks
like Wing examine 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 the Wing case, I think this is happening because pymel is creating
functions and classes dynamically. Maybe I'm gonna say a nonsense but
If instead of creating functions "on the fly", pymel creates function
to a file from maya.cmds, etc, writing the help and all the code, when
you install pymel, like the maintenance module but with functions and
classes, it will work, at least for wing, 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 a wing user 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.  pymel is 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 the pymel project, 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 download pymel and 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 of pymel 1.0 for
>>>>>> creating reliable pi files for both maya and pymel packages.
>>>>>>
>>>>>>
>>>>>> On Jan 4, 2010, at 11:08 PM, ryant wrote:
>>>>>>
>>>>>>> I am looking into how to generate the pi files that Wing needs for
>>>>>>> auto completion. I am unsure how to use the generate_pi.py file that
>>>>>>> comes with Wing to 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\Wing IDE 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\Wing IDE 3.2\src\wingutils\generate_pi.py",
>>>>>>> line 1028,
>>>>>>> in <module>
>>>>>>>   ProcessModule(modname, magic_code, metadata, file=f)
>>>>>>>  File "C:\Program Files\Wing IDE 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 for Wing properly?
>>>>>>>
>>>>>>> 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

Reply via email to