Re: [Maya-Python] Speed up setting of keyframe

2018-07-19 Thread yann19
Only the first frame is being baked while the rest is static, though the process is fast, when using "update=False" or commenting that line out.. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this

Re: [Maya-Python] Speed up setting of keyframe

2018-07-19 Thread yann19
I added that in as a precaution to ensure that every frame animation is being "baked". Let me try without that then On Thursday, July 19, 2018 at 2:51:27 PM UTC-7, Justin Israel wrote: > > Is the cmds.currentTime(frame) necessary, if you are already passing a > "time" value to setKeyframe()? I

Re: [Maya-Python] Speed up setting of keyframe

2018-07-19 Thread Justin Israel
On Fri, Jul 20, 2018 at 10:49 AM yann19 wrote: > I added that command in, to ensure that animation is being baked properly > in each frame across the frame range defined. > > I tried commenting out that particular line, only the first frame is being > baked while the rest of the frames are

[Maya-Python] Re: Parent instanciate shape with API

2018-07-19 Thread RĂ©mi Deletrain
In my case I duplicate a nurbsCurve so OpenMaya.MFnDagNode.duplicate return a new transform with shape instanced. New transform isn't an instance. I tryed many solution for retrieve shape but with addChild nothing works... I just try with keepExistingParents and it's the solution !!! This

[Maya-Python] drawing openGl in a deformer / VP2.0

2018-07-19 Thread fruityfrank
hi there, I'm prototyping a deformer in python / maya2017, and while I usually draw a lot of openGL for debugging purpose (draw points, curves, vectors, etc...), I'm facing an issue with m2017/vp2. The drawing is working differently in the new viewport, and I can't find a way of drawing,

Re: [Maya-Python] Re: PyQt - Radio button selection

2018-07-19 Thread yann19
Got it, thanks guys! On Tuesday, July 17, 2018 at 12:50:17 PM UTC-7, Justin Israel wrote: > > > > On Wed, Jul 18, 2018, 5:21 AM Marcus Ottosson > wrote: > >> Alternatively, instead of two layouts, parent them to two widgets, each >> with their own layout, and put the two widgets in a third

Re: [Maya-Python] Speed up setting of keyframe

2018-07-19 Thread Justin Israel
Is the cmds.currentTime(frame) necessary, if you are already passing a "time" value to setKeyframe()? I imagine you are wasting a bunch of cpu time changing the current frame in the scene and triggering updates. On Fri, Jul 20, 2018 at 9:40 AM yann19 wrote: > Hi, I am writing up a script that

[Maya-Python] Speed up setting of keyframe

2018-07-19 Thread yann19
Hi, I am writing up a script that works in a similar fashion as quick bake, select controllers from rigA and have the animation within to be transferred over to rigB. Currently the following code portion is taking quite some time, iterating through the frame range. Wondering if there are any