Re: [Maya-Python] Error: TypeError: file maya console line 1: Invalid arguments for flag 'time'. Expected (time, [time]), got float

2012-04-22 Thread Besjan Xhika
Thanks for your reply, I found the solution soon after I posted in here. On Friday, April 13, 2012 2:26:09 AM UTC+2, damonshelton wrote: in python time is required as a start and end time keyt = (keytimes[0], keytimes[0]) cmds.keyframe('nurbsSphere1_translateX', time = keyt, query = True,

[Maya-Python] python api set normals

2012-04-22 Thread vux
In my python node i need to perComponent copy of inMesh to outMesh. Not simpe MFnMesh.copy(), but per component (points,connects,faceCounts). It is ok, but i dont know how to copy and past normals to outMesh. MFnMesh.getNormas() \ MFnMesh.setNormals() DONT WORK ((( So, this is pease of my code

Re: [Maya-Python] Error: TypeError: file maya console line 1: Invalid arguments for flag 'time'. Expected (time, [time]), got float

2012-04-22 Thread Justin Israel
Hey Besjan, It might be a good idea to follow up on your questions if you ask the community something and then someone answers. I keep seeing a pattern in this discussion group where people will ask a question, someone takes the time to provide information, and then that original person says

Re: [Maya-Python] Error: TypeError: file maya console line 1: Invalid arguments for flag 'time'. Expected (time, [time]), got float

2012-04-22 Thread Besjan Xhika
You're right. I wanted to reply after I founded the solution but I couldn't find my post and I thought it was deleted and didn't checked for it anymore, until now. On Sun, Apr 22, 2012 at 7:56 PM, Justin Israel justinisr...@gmail.comwrote: Hey Besjan, It might be a good idea to follow up on

Re: [Maya-Python] maya 2013 and pyqt on osx lion (10.7.3)

2012-04-22 Thread joshua ochoa
Hi Justin! Huge Thank You for making this update! Works like a charm! +josh -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

Re: [Maya-Python] PyQt MainWindow as ScriptJob Parent

2012-04-22 Thread Justin Israel
Post your latest code? Maybe you have a strange indent. No idea why the closeEvent would happen right away unless maybe you are letting it get garbage collected immediately. On Sun, Apr 22, 2012 at 3:51 PM, Christopher Evans chris.ev...@gmail.comwrote: If I pipe that 'name' into the 'p' parent

Re: [Maya-Python] PyQt MainWindow as ScriptJob Parent

2012-04-22 Thread Christopher Evans
http://pastebin.com/PKEyg0FJ On Mon, Apr 23, 2012 at 1:11 AM, Justin Israel justinisr...@gmail.com wrote: Post your latest code? Maybe you have a strange indent. No idea why the closeEvent would happen right away unless maybe you are letting it get garbage collected immediately. On Sun, Apr

Re: [Maya-Python] PyQt MainWindow as ScriptJob Parent

2012-04-22 Thread Justin Israel
You have some issues with the way you are loading and using your UI. Notice that you are loading the UI into self.ui, but then implementing events on self. Your end up calling self.ui.show() from your init which is showing a completely different object than your main window class. Normally, I