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 -~----------~----~----~----~------~----~------~--~---
