I was just wondering if anyone had any success in getting something like
this to work.

Zac

On Fri, Jun 12, 2009 at 2:00 AM, Chad Dombrova <[email protected]> wrote:

>
> yeah, for a first try i'm going to hook into this to make a dynamic
> mel command generator for python functions.  more of an experiment
> really since we don't need it at luma.  i'll see if it can be done as
> a class so that others can subclass it for their own use -- the
> bookkeeping should be fairly simple (famous last words?)
>
> -chad
>
>
> On Jun 11, 2009, at 7:40 AM, Paul Molodowitch wrote:
>
> >
> > Wow... and here I was thinking we'd have to do text processing /
> > dynamic creation of a 'dummyPlugin.py' file in order to make 'dynamic
> > plugins' a reality.
> >
> > That's huge news!
> >
> > - Paul
> >
> > On Thu, Jun 11, 2009 at 5:09 AM, Dean
> > Edmonds<[email protected]> wrote:
> >>
> >> On Thu, Jun 11, 2009 at 01:55, Chadrik<[email protected]> wrote:
> >>>
> >>> just thinking out loud, here:  is it possible to do create a command
> >>> outside of the context of a plugin?
> >>
> >> At this point I was going to tell you how I thought it unlikely to
> >> work.
> >>
> >>> # get it's mobject and register the new command
> >>> mobject = getPluginObject( 'dummyPlugin' ) # can this be done???
> >>
> >> Yes:
> >>
> >>    mobject = mpx.MFnPlugin.findPlugin('dummyPlugin')
> >>
> >> I just tried it and damned if it doesn't work! Works for nodes, too.
> >>
> >> Very nice.
> >>
> >> You'll have to be careful to make sure that everything is properly
> >> deregistered before the dummy plugin is unloaded.
> >>
> >> --
> >> -deane
> >>
> >>>
> >>
> >
> > >
>
>
> --~--~---------~--~----~------------~-------~--~----~
> http://groups.google.com/group/python_inside_maya
> -~----------~----~----~----~------~----~------~--~---
>
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to