Re: [Maya-Python] PyQt and QGridLayout

2014-03-19 Thread Justin Israel
@David, my implementation was a direct port of the example flowlayout.py from a QLayout -> QGraphicsLayout so that I could use it in a QGraphicsScene. I do all of my image result listing there instead of a QWidget system On Thu, Mar 20, 2014 at 12:16 PM, David Martinez < david.martinez.a...@gmail

Re: [Maya-Python] PyQt and QGridLayout

2014-03-19 Thread David Martinez
Thanks for the heads up Fredik I will take a look:-) -- David Martinez - Technical Animator Email: david.martinez.a...@gmail.com Website: http://www.elusiveideas.com On Wed, Mar 19, 2014 at 10:31 PM, Fredrik Averpil wrote: > +1 for flowlayout > > I have a side project which hasn't gott

Re: [Maya-Python] PyQt and QGridLayout

2014-03-19 Thread Fredrik Averpil
+1 for flowlayout I have a side project which hasn't gotten a lot of attention lately but you can see how I implemented it here: https://github.com/fredrikaverpil/pyVFX-viewer // Fredrik -- You received this message because you are subscribed to the Google Groups "Python Programming for Autode

Re: [Maya-Python] PyQt and QGridLayout

2014-03-19 Thread David Martinez
Wait... Does your implementation use the FlowLayout at all then? -- David Martinez - Technical Animator Email: david.martinez.a...@gmail.com Website: http://www.elusiveideas.com On Wed, Mar 19, 2014 at 8:27 PM, David Martinez < david.martinez.a...@gmail.com> wrote: > Ah, I thought that mig

Re: [Maya-Python] PyQt and QGridLayout

2014-03-19 Thread David Martinez
Ah, I thought that might have been the case! I will take a look and see how it goes. I will try to go one step at a time instead of trying to get the whole thing working. Thanks again Justin -- David Martinez - Technical Animator On Wed, Mar 19, 2014 at 7:56 PM, Justin Israel wrote: > I thin

Re: [Maya-Python] PyQt and QGridLayout

2014-03-19 Thread Justin Israel
I think you are reinventing the wheel. The PyQt4 source comes with a flowlayout in its example directory: https://github.com/Werkov/PyQt4/blob/master/examples/layouts/flowlayout.py I actually ported that to a QGraphicsLayout and use it for images in a grid. Works great. On Thu, Mar 20, 2014 at 1

Re: [Maya-Python] Why Arts appears in white without maya rendering

2014-03-19 Thread Justin Israel
Are you sure you exported your FBX with textures? It is possible that you didn't. On Wed, Mar 19, 2014 at 9:24 PM, Rino De Astis wrote: > Yes i mean that i see the model in the viewport live but it appears in > white, i ask this because if i exoprt it with my game asset engine it > appears in wh

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread Marcus Ottosson
Aaah, right. I suppose you would need to recursively head up the hierarchy for that then. Glad to hear you got it working. On 19 March 2014 17:59, Eric Thivierge wrote: > Agreed. The problem is, in Softimage there is not "Full Path". You can get > the ".FullName()" which only gives you the mode

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread Marcus Ottosson
I see. It's generally a good approach to work with full-paths throughout, and if you do, you should encounter little difficulty in paths across packages. Even duplicate names across hierarchies are unique given a full path. On 19 March 2014 17:44, Eric Thivierge wrote: > Thanks Marcus, > > The

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread Eric Thivierge
Agreed. The problem is, in Softimage there is not "Full Path". You can get the ".FullName()" which only gives you the model space plus object name "myRig.pCube1" for example instead of "myRig.geometry.lowres.pCube1". It was quick enough to roll my own though. Eric T. On Wednesday, March 19,

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread Eric Thivierge
Thanks Marcus, The problem I'm facing currently is that I need to write data to a json file that can be read in and interperated by both Softimage and Maya. So I have to store object names consistently when exporting from Softimage or Maya. I'm probably more in favor of mimicking the Maya for

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread Marcus Ottosson
In Maya, the hierarchy is included in a node's path but gets discarded most of the time and instead the artist is trusted to keep his names unique. The reason this is the case is because in Maya, there is no "hierarchy". Maya is inherently node-based; Softimage on the other hand does have the notio

Re: [Maya-Python] QDoubleSpinBox mouse scroll wheel

2014-03-19 Thread Marcus Ottosson
Sounds like you could override wheelEvent and forward those events to then increment the current value in the box. http://qt-project.org/doc/qt-5/qwidget.html#wheelEvent On 19 March 2014 15:12, Arvid Schneider wrote: > Hey Guys, > I am rather new to Qt and I have a doubleSpinbox and want to cha

[Maya-Python] QDoubleSpinBox mouse scroll wheel

2014-03-19 Thread Arvid Schneider
Hey Guys, I am rather new to Qt and I have a doubleSpinbox and want to change values with the mouse wheel, like in Nuke. Wherever the cursor is, those values should be changed while using the mouse wheel. Can someone help me out how to do that? Best regards, Arvid -- You received this message

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread damon shelton
cmds.ls ('*pCube1', long=True) On Mar 19, 2014 7:54 AM, "Eric Thivierge" wrote: > Hello all, > > This may seem like a simple question but my Googling didn't return any > useful results. > > I have a name of an object 'pCube1'. I need to find it in the Maya scene. > Problem is, I may have multiple

Re: [Maya-Python] Finding object in scene by name

2014-03-19 Thread Eric Thivierge
Hah. Well, yeah... thanks. On Wednesday, March 19, 2014 10:59:10 AM, damon shelton wrote: cmds.ls ('*pCube1', long=True) On Mar 19, 2014 7:54 AM, "Eric Thivierge" mailto:ethivie...@hybride.com>> wrote: Hello all, This may seem like a simple question but my Googling d

[Maya-Python] Finding object in scene by name

2014-03-19 Thread Eric Thivierge
Hello all, This may seem like a simple question but my Googling didn't return any useful results. I have a name of an object 'pCube1'. I need to find it in the Maya scene. Problem is, I may have multiple objects in the scene that are named the same thing. Even in the same hierarchy (Crazy th

[Maya-Python] PyQt and QGridLayout

2014-03-19 Thread David Martinez
Hi, I'm trying to get a window displaying a grid of images. (Like the ones that would exist in either a character loader or a pose manager). Each of those buttons would execute or import a different file. I want the QGridLayout to react to the size of the window. In order to do that, this is what

Re: [Maya-Python] ZeroMQ for RPC

2014-03-19 Thread Marcus Ottosson
I'm giving ZMQ a shot first, I'd much prefer the use of only one network library as opposed to several. But I'll post back here if and when I meet up with Thrift. On 19 March 2014 06:13, Justin Israel wrote: > Report back with your experience with Thrift, since you are able to make > comparison