Ah! It's so simple, of course!I swear I tried something like that at one point and came up with nothing. Thanks for posting this!
-Tim


On 9/7/2012 7:04 AM, Ana Gomez wrote:
Right!! And you can also get the path directly:

Application.Plugins( 'MultiImporter_Qt' ).OriginPath



On Fri, Sep 7, 2012 at 11:36 AM, piotrek marczak <piotrek.marc...@gmail.com <mailto:piotrek.marc...@gmail.com>> wrote:

    SignatureThanks Tim, good learning resource
    btw

    srcDir = ''
     for plugin in Application.Plugins: # Isn't there an easier way to
    get this path?

         if plugin.Name == 'MultiImporter_Qt':
             srcDir = os.path.dirname(plugin.Filename)

    like this:
    srcDir = ''
    srcDir = os.path.dirname( Application.Plugins( 'MultiImporter_Qt'
    ).Filename )

    From: Tim Crowson
    Sent: Tuesday, August 28, 2012 12:10 AM
    To: softimage@listproc.autodesk.com
    <mailto:softimage@listproc.autodesk.com>
    Subject: Re: Some more questions about PyQt in Softimage


    I've also added a page about it on my site:
    http://dynamiclens.com/wordpress/?page_id=750

    -Tim



    On 8/27/2012 5:04 PM, Steven Caron wrote:
    great news! sorry to ask this of you again, but could you log
    another separate issue on github? i ask because a) i am super busy
    and b) i can't get to it now and need a nice reminder

    s


    On Mon, Aug 27, 2012 at 2:32 PM, Tim Crowson
    <tim.crow...@magneticdreams.com
    <mailto:tim.crow...@magneticdreams.com>> wrote:

    Yes, that seems to do the trick! New version (v1.13) is attached.
    Thanks Luc-Eric!

    Now, any Qt experts who can tell me about button sizes for
    standard buttons on a QMessageBox?  ;-)


    -Tim




    On 8/27/2012 3:34 PM, Steven Caron wrote:
    oh nice... thanks luc-eric!

    @tim, give this a shot?


    On Mon, Aug 27, 2012 at 1:28 PM, Luc-Eric Rousseau
    <luceri...@gmail.com <mailto:luceri...@gmail.com>> wrote:

    On Mon, Aug 27, 2012 at 4:02 PM, Steven Caron <car...@gmail.com
    <mailto:car...@gmail.com>> wrote:

        these are only exposed to the cpp api right? so i need to
        expose this to
        scripting in the QtSoftimage plugin...


    it's there in scripting

    desktop = Application.Desktop
    desktop.SuspendWin32ControlsHook()
    desktop.RestoreWin32ControlsHook()




--




--


--
Signature

Reply via email to