0
$\begingroup$

I want to remove the x and y locations in fcurve using codes. I can remove all location channels in fcurve using codes, but I don't know which one x or y is. If the fcurve contains x,y,z, I remove the first two. This is fine. What if the fcurve contains only x and z?

$\endgroup$
1
$\begingroup$

OK... I somehow find the solution. Blender can figure out xyz channels by array_index of the location. 0->x,1->y,2->z. If I change 0 to 1, then I will get two Y-location channels...

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.