Time arguments

22 views
Skip to first unread message

Lidia Martinez

unread,
Nov 28, 2015, 10:27:01 PM11/28/15
to python_in...@googlegroups.com

I don't find anywhere. 
How do you tranlate from MEL to Python a time argument like this:

selectKey -add -k -t ":" $curveName


mc.selectKey(curveName, add=True, k=True, t=":")  ?

That doesn't work. 

":" ??


Documentation has no examples at all.


--
Lidia M.

Justin Israel

unread,
Nov 28, 2015, 10:42:26 PM11/28/15
to python_in...@googlegroups.com
Hey Lidia,

The examples at the bottom of the selectKey python docs, as well as the traceback from python when used incorrectly, suggest that the time param always expects a tuple. This should work:

mc.selectKey(curveName, add=True, k=True, t=(":",))

Justin

 


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8xAzaH4HJUbmO-LpKJHY%2BzCKZvYrFTa%3DtJ%2BvjaQPNu2nA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages