hello everyone
I want to merge the anim layer in maya. using python, I searched but no one can answer my question.
I use a script like this:
import maya.cmds as cmds
for a in cmds.ls(typ=“animLayer”):
start=cmds.playbackOptions(q=1,min=1)
end=cmds.playbackOptions(q=1,max=1)
cmds.bakeResults(a,sm=True,t=(start,end))
this is only for the bake layer, but not for the merge