Re: [Maya-Python] MFnAnimCurve building

2017-05-16 Thread Alok Gandhi
Can you be more specific with the type of change? Is it the slope of the tangents, their length or something else that changes? I think setAngle()

Re: [Maya-Python] get the cmds.intField when button pressed?

2017-05-16 Thread walk_fish
在 2017年4月17日星期一 UTC+8上午4:11:13,gnn写道: > Hello, i need to make an ui layout in python inside maya, > it is asking some questions and when the button is pressed, > put the entries of intField or textField into variables... > very simple but i can't find the solution: "if button pressed?"... >

[Maya-Python] MFnAnimCurve building

2017-05-16 Thread Mark Jackson
I'm wondering if anybody could shed a light on issues I'm having with setting up animCurves through the API, or more specifically the key Tangents. Basically I've moving our animFormat into API and have pretty much got everything running but one of the regression tests is failing. It seems like

Re: [Maya-Python] How to add model panel to layout created in designer in maya

2017-05-16 Thread Sudeepth Patinjarayil
Thank Justin. I have seen that but didn't look at the comments. On Tuesday, May 16, 2017 at 5:04:47 PM UTC+5:30, Justin Israel wrote: > > What is the value of self.LAY_grid_modelEditor? Am I assuming correctly > that it is a PySide object? If so, the cmds.setParent() call, being the > Maya cmds

Re: [Maya-Python] How to add model panel to layout created in designer in maya

2017-05-16 Thread Justin Israel
What is the value of self.LAY_grid_modelEditor? Am I assuming correctly that it is a PySide object? If so, the cmds.setParent() call, being the Maya cmds api, is expecting a string path to the Maya UI object. Maybe my old post on this related topic will help?

Re: [Maya-Python] ImportError when running terminal command in maya standalone

2017-05-16 Thread Alok Gandhi
Also, this does not solve your problem but is relevant, just so you know, import pymel.core will take care of the initialization in one line, you read more about it here . But if you want to be more explicit about

[Maya-Python] How to add a model panel to a layout created in designer

2017-05-16 Thread psudeepth
Hi, I am trying to place a model panel to a layout created in designer. I am using PySide in 2015 cmds.setParent(self.LAY_grid_modelEditor) cmds.modelPanel('testEditor', cam='persp') cmds.setParent('..') But getting the error: # RuntimeError: setParent: Object '' not found.

[Maya-Python] How to add model panel to layout created in designer in maya

2017-05-16 Thread Sudeepth Patinjarayil
I am creating a script in i want to place a model panel in a grid layout created in QtDesigner. [image: enter image description here] model panel has to be placed in the red area. I tried cmds.setParent(self.LAY_grid_modelEditor)