I'm a newbie on Maya programming.
I'm trying to make a script to check and template/untemplate a channel. I have a transform node opened in graph editor called 'SKEL01_002:main_C_001_CTRL'. Then I select 'TranslateX', and still in graph editor I go to CURVES --> TEMPLATE CHANNEL
I can list the Curves with:
cmds.listConnections('SKEL01_002:main_C_001_CTRL', t='animCurve')
But I can't figure out how to template/untemplate in python.
So thanks in advance for your help.