Hey Lidia,
The examples at the bottom of the selectKey python docs
<http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/index.html>,
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
On Sun, Nov 29, 2015 at 4:26 PM Lidia Martinez <[email protected]>
wrote:
>
> 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.
>
> --
> 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 [email protected].
> 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
> <https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8xAzaH4HJUbmO-LpKJHY%2BzCKZvYrFTa%3DtJ%2BvjaQPNu2nA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2J33dCaNR7TWL-s0ZYomFFaw03xvPH6tjC7pSf3y4qnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.