TimeToUnitless and key altered

22 views
Skip to first unread message

Rémi Deletrain

unread,
Apr 9, 2019, 4:52:41 AM4/9/19
to Python Programming for Autodesk Maya
Hi everyone,

I try to apply an animation with new command of MFnAnimcurve addKeysWithTangents.
With Translate TimeToLinear and rotate TimeToAngular I not have problem, but with scale TimeToUnitless I have altered key.

My animation is linear. When I move timeLine my attribute is always at 0.0.
    - time: 1.0  -- value:1.0
    - time: 120 -- value: 1.0. 

If I try with this modification, in loading, my attribute is 0.0 and key altered but when I change current time everything is OK, my attribute have good value and is not altered...
    - time: 1.0  -- value: 1.0
    - time: 120 -- value: 3.0

Anyone already see this problem ?
Anyone have solution ?

Rémi Deletrain

unread,
Apr 9, 2019, 4:56:40 AM4/9/19
to Python Programming for Autodesk Maya
I tryed by forcing tangent type in TimeToLinear in scale and I have a same problem...
I suppose the probleme is in attribute scale and not from animcurve...

Rémi Deletrain

unread,
Apr 9, 2019, 8:54:10 AM4/9/19
to Python Programming for Autodesk Maya
With complex animation (with lot of animation layer) I found this problem on Translate or rotate too.
I found a stupid fix. After addKeysWithTangent I set first key with setKey function.

If anyone have better solution...
Reply all
Reply to author
Forward
0 new messages