Re: [Maya-Python][ANN] Pyblish 1.0 Alpha

2014-10-14 Thread Marcus Ottosson
Thanks Justin, that makes sense. Giving websockets a try as it sounds the most slick. On 14 October 2014 13:10, Justin Israel wrote: > There are a few ways in which a web client can get information from the > application server: > >- ajax requests - Send a request, and get a response >-

Re: [Maya-Python] RuntimeError setAttr

2014-10-14 Thread Justin Israel
It would be great if you could identify which line actually produces this error. On Wed, Oct 15, 2014 at 3:24 PM, flaye wrote: > I get this error, and haven't been able to find the source of it. Is it > way Python interprets the numbers for Y & Z? > > > # RuntimeError: setAttr: Error reading dat

Re: [Maya-Python] Re: Dictionary help

2014-10-14 Thread Justin Israel
On Wed, Oct 15, 2014 at 3:16 PM, flaye wrote: > > > Solved it: > > Tried initially > self.dHandles[limbName]=allHandles > > but the dictionary kept returning only one value list. > > Tried also > self.dHandles[limbName].append(allHandles) > > with the same result. > > Finally, got this to work li

[Maya-Python] RuntimeError setAttr

2014-10-14 Thread flaye
I get this error, and haven't been able to find the source of it. Is it way Python interprets the numbers for Y & Z? # RuntimeError: setAttr: Error reading data element number 1: [(24.1303752966691, 1.4210854715202004e-13, 5.329070518200751e-15)] # Here's the method that generates it: def

[Maya-Python] Re: Dictionary help

2014-10-14 Thread flaye
Solved it: Tried initially self.dHandles[limbName]=allHandles but the dictionary kept returning only one value list. Tried also self.dHandles[limbName].append(allHandles) with the same result. Finally, got this to work like a charm: self.dHandles.setdefault(limbName,[]).append(allHandle

Re: [Maya-Python] [PySide] - Loading ui file from qt Designer

2014-10-14 Thread johnvdz
hi Jeremy, just search the archive.. a lot of this has already been posted before. https://www.mail-archive.com/python_inside_maya@googlegroups.com/msg08046.html john On 15/10/2014 10:29 AM, Jeremy YeoKhoo wrote: Hey guys, I am trying to convert a relatively old PyQt file in PySide. I have a

[Maya-Python] [PySide] - Loading ui file from qt Designer

2014-10-14 Thread Jeremy YeoKhoo
Hey guys, I am trying to convert a relatively old PyQt file in PySide. I have a ui file created from QtDesigner. How would I load my .ui file using PySide since loadUIType ? Where in PyQt I would use uic.loadUiType from PyQt4 import QtGui, uic form_class, base_class = uic.loadUiType("/ui_pySide

Re: [Maya-Python][ANN] Pyblish 1.0 Alpha

2014-10-14 Thread Justin Israel
There are a few ways in which a web client can get information from the application server: - ajax requests - Send a request, and get a response - websockets - Make an initial handshake and then use an open socket to continue direct communication - long polling - Make a request that si

Re: [Maya-Python][ANN] Pyblish 1.0 Alpha

2014-10-14 Thread Marcus Ottosson
Hey Justin, Thanks, that sounds reasonable. But I still can’t grasp how a dictionary from the server can be accessed from Javascript, or Angular. Some psuedo-code: data = {} # Access from JS? app = Flask() app.start() In the case of polling, what does JS poll from? ​ On 14 October 2014 11:55

Re: [Maya-Python][ANN] Pyblish 1.0 Alpha

2014-10-14 Thread Justin Israel
It wouldn't matter so much if you were using MongoDB, or MySQL, or completely in memory, since that is all behind the application server either way. When you do a put request to the application server, it can then make that information available to other views. In terms of how those other view will

Re: [Maya-Python] Dictionary help

2014-10-14 Thread Justin Israel
On 15/10/2014 2:45 AM, "flaye" wrote: > > Hi Justin, > > Thanks for that tip. So I'm guessing then I don't need to append the objects to the list? > > From this: > #self.ikHandles.append(allHandles) > > # update ikHandle dictionary > self.dHandles[li

Re: [Maya-Python][ANN] Pyblish 1.0 Alpha

2014-10-14 Thread Marcus Ottosson
Back on the topic of a Web Frontent , thanks to everyone for the feedback so far, at this point it seems to me to make the most sense to move forward with Flask for backend, Bootstrap for visuals and Angular for front-end, all of which seem real

Re: [Maya-Python] Dictionary help

2014-10-14 Thread Eduardo Grana
Hello Flaye, Maybe a little off topic, but, still about getting and setting data for rigs Have you cheked out what the guy from red9 is doing? http://vimeo.com/100882408 http://vimeo.com/100883383 http://vimeo.com/102463373 http://www.creativecrash.com/maya/script/red9-studio-pack I was using

Re: [Maya-Python] Dictionary help

2014-10-14 Thread flaye
Hi Justin, Thanks for that tip. So I'm guessing then I don't need to append the objects to the list? >From this: #self.ikHandles.append(allHandles) # update ikHandle dictionary self.dHandles[limbName]=self.ikHandles

Re: [Maya-Python] Create function for optionMenuGrp

2014-10-14 Thread likage
So are there any ways that I can run my initialwindow first before the __init__? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_

Re: [Maya-Python] Create function for optionMenuGrp

2014-10-14 Thread likage
My reason for the optionMenu is so that User can choose between, to grab the frame range of the time slider, or to grab the 'keyframed' range of the selection (camera selection in this case). As such, in the following code, it handles the exporting of camera, and I would say the main focus woul

Re: [Maya-Python] Create function for optionMenuGrp

2014-10-14 Thread Justin Israel
On Tue, Oct 14, 2014 at 7:56 PM, likage wrote: > I have kind of manage to get it to work. > This is actually an exporting object plugin but I have got 2 problems. > 1. My initial window aren't popping up when I select my object >> File >> > Export selection > Not sure from what you posted. > 2

Re: [Maya-Python] Dictionary help

2014-10-14 Thread Justin Israel
I didn't extensively examine your pastebin, but one thing that stands out is that you seem to be appending sets of lists to your ikHandles list, and then assigning that list as the value to every limbName in your dHandles dict: self.ikHandles.append(allHandles) self.dHandles[limbName]=self.ikHandl

Re: [Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-14 Thread e9554564
ah, that explains alot ha. thanks!. Do you think its better to use the 2.0 api? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_in