---------- Forwarded message ----------
From: Hradec <[email protected]>
Date: Wed, Oct 14, 2009 at 1:31 PM
Subject: Re: [Maya-Python] Re: Fwd: wxmaya module up and runnning!
To: [email protected]


just to correct a typo:

where I wrote: "which only *helps* during a idle event anyway... "
it should be:   "which only *happens *during a idle event anyway...

-H


On Wed, Oct 14, 2009 at 1:24 PM, Hradec <[email protected]> wrote:

> As far as I can tell, evertyhing is working just fine, even after you
> shutdown the threads... The only problem is the one I already reported...
> the Maya menu looses its events, so menus dont do anything...
>
> But if you use hotbox, everything works just fine...
>
> I think the menu is a OSX only problem, related to the menubar not being
> properly restored by wxPython... I'm going to do some tests, trying to save
> the current menu before calling wxApp, and make wxApp switch it when looses
> focus... will see...
>
> But no crashes or hangs... so far so good! :)
>
> My pumpthread actually sends idle events using utils.executeDeferred(),
> which prevents it from throw too many idle events, as executeDefered holds
> the threads until it gets executed... which only helps during a idle event
> anyway... so, aparently, it looks to be pretty synchronized!
>
> Just to add... I added a checkbox control that dinamically connects to a
> node attribute... it spawns a thread that monitors if the attribute in maya
> changes... if so, updates the checkbox automatically... works great! The
> thread is a unique thread to all controls... so as you add more controls,
> they are added to a heap that the thread pops from to do the checking... So,
> we'll see how BAD it will be with loads of controls later...
>
> to test it, just sync up and run:
>
> wxmaya.demos.controls()
>
>
> -H
>
>
> On Tue, Oct 13, 2009 at 2:19 PM, Chris G <[email protected]> wrote:
>
>>
>> That problem should go away if your pumpThread synchronizes with the
>> main thread instead of burying it with idle events, or is this a
>> different issue?
>>
>>
>> On Tue, Oct 13, 2009 at 12:15 AM, Chad Dombrova <[email protected]>
>> wrote:
>> >
>> > The threading seens to hold up pretty well... so far no crashs!!
>> >
>> > the problem with osx is *after* you shut down the other thread the main
>> > thread never recovers:  you can't open new windows, etc.
>> > -chad
>> >
>> >
>> > I'm happy!! :)
>> >
>> > I also started porting the controls to wxmaya. I think really soon I'll
>> have
>> > some basic wx controls with dinamic back and forward update from maya,
>> just
>> > mimicking mel ui controls behaviour.
>> >
>> > -H
>> >
>> >
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Oct 9, 2009 at 10:59 PM, Chad Dombrova <[email protected]>
>> wrote:
>> >>>
>> >>> well done!
>> >>> awhile back i was messing with this, but i just gave up on it.  glad
>> you
>> >>> were more persistent.  there is a wx shell window included with
>> ipython:
>> >>>  i'd love to see if we can get it working with your module because
>> i have
>> >>> some really nice maya attribute and dag path completers that i wrote
>> for
>> >>> it.  using it inside maya would be a dream come true.  osx has major
>> >>> threading issues that even pumpthread won't fix, but this may be worth
>> >>> rebooting into linux for.
>> >>> -chad
>> >>>
>> >>>
>> >>> On Oct 9, 2009, at 10:40 PM, Hradec wrote:
>> >>>
>> >>> Yep... everything you can do in the script editor window, you can do
>> in
>> >>> the pyshell window!!!
>> >>>
>> >>> for example, if you create a variable in the script editor, that
>> variable
>> >>> will be available in the pyshell window.
>> >>>
>> >>> the same for a module... if you import a module in the script editor,
>> the
>> >>> modulo is there in the pyshell window.
>> >>>
>> >>> and vice-versa, off course...
>> >>>
>> >>> the pyshell window is just a separated UI for the same python backend!
>> :)
>> >>>
>> >>> -H
>> >>>
>> >>> On Fri, Oct 9, 2009 at 5:04 PM, chadrik <[email protected]> wrote:
>> >>>>
>> >>>> does the pyshell actually interact with the running maya?
>> >>>>
>> >>>> i.e. does:
>> >>>>
>> >>>>  >>> cmds.sphere()
>> >>>>
>> >>>> actually make a sphere in the viewport?
>> >>>>
>> >>>>
>> >>>> On Oct 9, 2009, at 4:19 PM, Hradec wrote:
>> >>>>
>> >>>> >
>> >>>> > Hi there...
>> >>>> >
>> >>>> > Last weekend I open sourced a python module that I have being
>> >>>> > working on for quite some time called wxmaya!
>> >>>> >
>> >>>> > The idea is integrate wxPython into maya in a simple and standard
>> >>>> > way, leaving wxmaya to take care of all the thread management
>> hassle.
>> >>>> >
>> >>>> > I'm starting open sourcing the base wxmaya.app class, which allows
>> >>>> > you to open an wxApp from within maya.
>> >>>> >
>> >>>> > As an example, it comes with wxmaya.pyshell, which is a class that
>> >>>> > open pyshell in maya. For those who don't know about it, pyshell is
>> >>>> > a python shell that comes with wxwidgets, that has syntax-coloring
>> >>>> > and code-completion!! YES... code completion DOES work with maya
>> >>>> > modules, like maya.cmds and maya.OpenMaya
>> >>>> >
>> >>>> > Please have a look at it, download, play, enjoy, have fun! And if
>> >>>> > possible, please report any issues or requests... or just drop a
>> >>>> > line to say hello! =)
>> >>>> >
>> >>>> > And if someone really enjoy the idea and wants to help, drop me a
>> >>>> > line! =)
>> >>>> >
>> >>>> > --
>> >>>> > Hradec
>> >>>> >
>> >>>> > >
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Hradec
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Hradec
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Hradec
>> >>
>> >>
>> >>
>> >> --
>> >> Hradec
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Hradec
>> >
>> >
>> >
>> > --
>> > Hradec
>> >
>> >
>> >
>> >
>> > >
>> >
>>
>> >>
>>
>
>
> --
> Hradec
>



-- 
Hradec



-- 
Hradec

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

        • ... Hradec
        • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
        • ... Hradec
  • ... Chad Dombrova
    • ... Hradec
      • ... Chad Dombrova
        • ... Hradec
        • ... Chad Dombrova
        • ... Chris G
        • ... Hradec
        • ... Hradec

Reply via email to