pasteKey command not working with matchByName

pasteKey command not working with matchByName

diego87J64
Explorer Explorer
1,130 Views
7 Replies
Message 1 of 8

pasteKey command not working with matchByName

diego87J64
Explorer
Explorer

Hi there,

 

I have been using the commands: copyKey and pasteKey for quite some time with different versions of Maya to transfer animations from one Maya file to another. The pasteKey command has an option matchByName, that I always set to true, so the animation is pasted on the elements with the same name (otherwise is a mess). The problem is in Maya 2020 this option doesn't work anymore. If I set it to True it doesn't paste the keys at all.

Any idea/suggestion?

 

Thanks!

0 Likes
Accepted solutions (1)
1,131 Views
7 Replies
Replies (7)
Message 2 of 8

kelly_hynes
Autodesk
Autodesk

 

Hi Diego,

 

This sounds bad.  I will do some work today to reproduce this and log the issue.  Thank you for the report.

 

Kelly



Kelly Hynes
Manager, Software QA Engineering
Installation & Licensing forums | Contact product support | Autodesk AREA


Message 3 of 8

kelly_hynes
Autodesk
Autodesk

Hi Diego,

 

Can you give me a simple script that shows this issue? Something copy/pasting keys on a cube using the matchByName option.

 

Thank you,

 

Kelly

 

 



Kelly Hynes
Manager, Software QA Engineering
Installation & Licensing forums | Contact product support | Autodesk AREA


Message 4 of 8

diego87J64
Explorer
Explorer

Hi Kelly,

 

Sure, create a sphere, make a simple animation with it, select it and use this script to copy the animation:

cmds.copyKey(time=(0,200))

 

Then go to a new scene, create a sphere again (so they will have the same name), select it and use this to paste it:

cmds.pasteKey(time=(0,200), matchByName=True, option='replace')

 

It works in Maya 2018 but doesn't in 2020.

 

I use this very often to copy paste animation from one scene to the other with many elements, props, characters, etc. and it works like a charm, very fast. And I don't have to take care of the order of selection thanks to the matchByName option.

 

Thanks!

0 Likes
Message 5 of 8

kelly_hynes
Autodesk
Autodesk
Accepted solution

 

I see that this is indeed broken in 2020 release, however, it is fixed in the last 2020 update.  Can you upgrade?

 

Kelly



Kelly Hynes
Manager, Software QA Engineering
Installation & Licensing forums | Contact product support | Autodesk AREA


0 Likes
Message 6 of 8

diego87J64
Explorer
Explorer

Hi Kelly,

 

I installed the update and indeed it works perfectly.

Thanks!

0 Likes
Message 7 of 8

urszula.lawecka6P3SY
Community Visitor
Community Visitor

I have the same problem now with 2023.3. Is it broken again?

0 Likes
Message 8 of 8

kelly_hynes
Autodesk
Autodesk

Ok.  I'm sorry about this.   I can see that it's broken in 2023.3 too, but seems to be working in my current internal builds.

Let me do some digging to see what has happened with this one.

 

Kelly



Kelly Hynes
Manager, Software QA Engineering
Installation & Licensing forums | Contact product support | Autodesk AREA


0 Likes