in maya .ma file there is a code like that
createNode animCurveTA -n "ALL_original:Head_CTL_rotateX";
setAttr ".tan" 18;
setAttr ".wgt" no;
setAttr -s 5 ".ktv[0:4]" 1 0 7 -8 13 0 19 -8 25 0;
if I import the file, it works so I get the anim curve node.
But, I just excute the script on script editor, it just create a node but don't set keys.
Is there a difference between importing the .ma and excuting the script?