[Maya-Python] bakeResults issues

2018-08-16 Thread yann19
I have an object that has constrained channels (translateXYZ and rotateXYZ), I set the blendParent to a value of 1 at a specified frame, while setting it to 0 for its first key of animation. Between these 2 blendParents, I have set them into 'step' mode. This is so that, I can extend the

[Maya-Python] Re: bakeResults issues

2018-08-16 Thread yann19
Adding on, sometimes I get a 'hit-or-miss' where the value of the `blendParent` attribute gets set back to 0 even thought I did not code in anything that makes it does that... -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya"

[Maya-Python] Re: bakeResults issues

2018-08-16 Thread yann19
If I use the following MEL command: global proc bakeAnimation() { for ($bone in `ls -sl`) { bakeResults -t (`playbackOptions -q -min` + ":" + `playbackOptions -q -max`) -sm true -hi both -at t -at r $bone ; } } bakeAnimation() It is able to bake in the channels at each

[Maya-Python] Re: bakeResults issues

2018-08-16 Thread yann19
I have created a test case: names = ['A01', 'A02', 'B01', 'B02'] def test_bakeResults(test_grp): if test_grp == 'A': loc01_name = names[0] loc02_name = names[1] else: loc01_name = names[2] loc02_name = names[3] loc01 =