RE: Need help in python plug-in development

2010-04-28 Thread Andreas Tawn
> Hi, I am new to python. I am using python 2.6. I have gone through the
> basic python and now I am trying to develop some plugin for maya 2009
> through python. So, for that I would need helping hand.

You'll probably have more luck with pymel specific stuff at 
http://www.tech-artists.org/

Cheers,

Drea
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Need help in python plug-in development

2010-04-28 Thread Krister Svanlund
On Wed, Apr 28, 2010 at 12:21 PM, Suraj Sakhare  wrote:
> Hi, I am new to python. I am using python 2.6. I have gone through the
> basic python and now I am trying to develop some plugin for maya 2009
> through python. So, for that I would need helping hand.

You would have to ask questions for that... just so you know.
-- 
http://mail.python.org/mailman/listinfo/python-list


Need help in python plug-in development

2010-04-28 Thread Suraj Sakhare
Hi, I am new to python. I am using python 2.6. I have gone through the
basic python and now I am trying to develop some plugin for maya 2009
through python. So, for that I would need helping hand.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python plug-in

2006-03-31 Thread Terry Hancock
toto wrote:

>I'm trying to find some howto, tutorial in order to create a python program
>that will allow plug-in programming. I've found various tutos on how to
>write a plug-in for soft A or soft B but none telling me how to do it in my
>own programs. Do you have any bookmarks ?
>  
>
There is more than one way to accomplish this, but one of the
simplest is to provide a directory where plugins are loaded, and
put an __init__.py in it which automatically finds files in the directory
that conform to some standard, and imports them (or tries to).

Here's a snippet from one of my projects:

import sys, os
from Operators import Operator, operate, Ops

# Find and load all available plugin modules:

operator_path = os.path.abspath(__path__[0])
for module_file in filter(
lambda n: n[-3:]=='.py' and n not in ('__init__.py', 'Operators.py'),
os.listdir(operator_path)):
#print "Loading %s" % module_file
f, e = os.path.splitext(module_file)
__import__(f, globals(), locals(), [])


(Operators.py is in the same directory and includes general purpose
code that the plugins use -- I think it might be better design to put
that in the parent directory. But that's awkward until Python
introduces relative import notation -- supposed to be coming in v2.5).

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python plug-in

2006-03-29 Thread bruno at modulix
toto wrote:
> Hi,
> 
> I'm trying to find some howto, tutorial in order to create a python program
> that will allow plug-in programming. I've found various tutos on how to
> write a plug-in for soft A or soft B but none telling me how to do it in my
> own programs. Do you have any bookmarks ??

Trac and MoinMoin have a plugin system IIRC.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python plug-in

2006-03-28 Thread Jean-Paul Calderone
On Tue, 28 Mar 2006 22:42:46 +0200, toto <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I'm trying to find some howto, tutorial in order to create a python program
>that will allow plug-in programming. I've found various tutos on how to
>write a plug-in for soft A or soft B but none telling me how to do it in my
>own programs. Do you have any bookmarks ??

Here's one way: 


Jean-Paul
-- 
http://mail.python.org/mailman/listinfo/python-list


Python plug-in

2006-03-28 Thread toto
Hi,

I'm trying to find some howto, tutorial in order to create a python program
that will allow plug-in programming. I've found various tutos on how to
write a plug-in for soft A or soft B but none telling me how to do it in my
own programs. Do you have any bookmarks ??

Regards,

Laurent.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python plug-in Frameworks like Eclipse RCP...

2005-04-02 Thread Diez B. Roggisch
Jim Hargrave wrote:

> Hum, maybe my question was too specific. What I would really like to
> know is what is the best way to implement a Python application with a
> pluggable architecture. In particular, I would like to use wxPython and
> have plug ins automatically register themselves with the GUI by adding
> themselves to the mean or adding a tab. Again this is much like Eclipse
> RCP - but forget that part :-)


This is close to beeing trivial in python - just utilize __import__ to
dynamically load modules that shall act as plugins. These modules then only
have to follow a sort of protocol - lets say you have a module called

pluginloader.py

that has a register-function. The loaded module could import pluginloader
and register itself, or a class defined in itself. Like this

-plugin_example.py-

import pluginloader


class ExamplePlugin(pluginloader.PluginBase):
 def __init__(self,...):
 



pluginloader.register(ExamplePlugin())





-- 
Regards,

Diez B. Roggisch
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python plug-in Frameworks like Eclipse RCP...

2005-04-01 Thread Jim Hargrave
Hum, maybe my question was too specific. What I would really like to 
know is what is the best way to implement a Python application with a 
pluggable architecture. In particular, I would like to use wxPython and 
have plug ins automatically register themselves with the GUI by adding 
themselves to the mean or adding a tab. Again this is much like Eclipse 
RCP - but forget that part :-)

J

Jim Hargrave wrote:
Eclipse provides a very nice application framework which supports 
plug-ins. It's easy to dynamically add new functionality, menu items, 
property editors, options etc.. using a combination of XML and Java code.

Is there a similar framework for Python? If not any hints on how such a 
framework would be implemented?

I'm building a client side tool using Python/wxPython for our 
translators and would like to have a pluggable architecture similar to 
Eclipse RCP

thanks!
--
http://mail.python.org/mailman/listinfo/python-list


Python plug-in Frameworks like Eclipse RCP...

2005-03-30 Thread Jim Hargrave
Eclipse provides a very nice application framework which supports 
plug-ins. It's easy to dynamically add new functionality, menu items, 
property editors, options etc.. using a combination of XML and Java code.

Is there a similar framework for Python? If not any hints on how such a 
framework would be implemented?

I'm building a client side tool using Python/wxPython for our 
translators and would like to have a pluggable architecture similar to 
Eclipse RCP

thanks!
--
http://mail.python.org/mailman/listinfo/python-list