I've downloaded pymel from github and I've write the pi files with the
maintenance module. After set the completion folder in Wing's
preferences I have autocompletion working but If I assign, for
example, a sphere to a new variable like this:
import pymel.core as pm
sphe = pm.sphere()
when I write:
sphe.
I don't get any autocompletion for that variable. Am I doing something
wrong or this is the way it works?
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