Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Miquel Campos
Hi Jeremie, Nop as far I know. You need to create a custom context. But it is possible to get same behaviour for sure. Like the Maya draw joint or crv tools Miq On Thursday, November 6, 2014, Jeremie Passerin wrote: > On a related subject, > is there a PickElement and PickObject-like command in

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Tim Crowson
Fantastic! On 11/5/2014 2:24 PM, Luc-Eric Rousseau wrote: You'd create a QEventLoop object to run a modal loop. Whenever your condition is reached, stop the loop by calling its quit() signal. On Wed, Nov 5, 2014 at 3:03 PM, Tim Crowson wrote: Well I really like XSI's behavior here and I woul

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Luc-Eric Rousseau
You'd create a QEventLoop object to run a modal loop. Whenever your condition is reached, stop the loop by calling its quit() signal. On Wed, Nov 5, 2014 at 3:03 PM, Tim Crowson wrote: > Well I really like XSI's behavior here and I would love to find a way to do > this in other apps. Seems like

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Tim Crowson
Well I really like XSI's behavior here and I would love to find a way to do this in other apps. Seems like I'll need to wrap my head around threads though, which I've never done, but seems well-documented online, as well as my host app's event system's API, which is also a bit obscure but has g

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Eric Thivierge
There is rumor of something like this but it's in a very obscure spot in the SDK and I'm not even sure its the same thing. Eric T. On Wednesday, November 05, 2014 2:06:10 PM, Jeremie Passerin wrote: On a related subject, is there a PickElement and PickObject-like command in Maya ? Anyone knows

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Jeremie Passerin
On a related subject, is there a PickElement and PickObject-like command in Maya ? Anyone knows ? On 5 November 2014 10:56, Tim Crowson wrote: > Thanks Cesar, > > This is for use in a different app, which doesn't have any mechanism like > pick sessions. Thanks for the direction, that makes sens

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Tim Crowson
Thanks Cesar, This is for use in a different app, which doesn't have any mechanism like pick sessions. Thanks for the direction, that makes sense. -Tim On 11/5/2014 12:38 PM, Cesar Saez wrote: Hi Tim, Do you mean in a standalone program? If so, you have to compare the state of the "selectio

Re: Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Cesar Saez
Hi Tim, Do you mean in a standalone program? If so, you have to compare the state of the "selection" in a while loop until there's a change, the tricky thing of this is that you would have to use threads in order to keep your software responsive during the loop. If your Qt tool is running within

Equivalent of XSI's Pick Session via pure Python/Qt?

2014-11-05 Thread Tim Crowson
Anyone have any ideas for how to recreate XSI's Pick Session behavior using Python and Qt? -- Signature *Tim Crowson */Lead CG Artist/ *Magnetic Dreams, Inc. *2525 Lebanon Pike, Bldg C, Suite 101, Nashville, TN 37214 *Ph* 615.885.6801 | *Fax* 615.889.4768 | www.magneticdreams.com tim.crow...@