Quantcast
Channel: mel wiki
Viewing all articles
Browse latest Browse all 610

How can I specify 'all keys' when cutting or pasting in Python?

$
0
0
In mel, when copying or pasting all keframes, the syntax is pretty simple (replace ... with the rest of the command code):
cutKey -time ":" ... ;
And even the Python command docs say this:
-time ":" is a short form to specify all keys.
But that's not how the Python formatting actually works.
Per Maya Docs -> User Guide -> General -> Python -> Using Python -> Ranges ->
You need to specify the time settings in this format:
mc.cutKey(time=(":",), ...)

Viewing all articles
Browse latest Browse all 610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>