1
$\begingroup$

Knowing my f-curve, how can I find the animated setting?

 bpy.data.actions['Material.001Action'].fcurves[0]

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

The answer was pretty simple. Just add this at the end of line:

.data_path

bpy.data.actions['Material.001Action'].fcurves[0].data_path
$\endgroup$
2
  • 1
    $\begingroup$ don't forget the .array_index to tell you which part of location, rotation_euler, or rotation_quaternion the fcurve applies to. $\endgroup$
    – Mutant Bob
    Commented Apr 8, 2015 at 14:21
  • $\begingroup$ Thank you Ray Mairlot I cried when I saw that I missed a parameter. I finally found the .array_index following data block on the outliner ! :') $\endgroup$ Commented Apr 9, 2015 at 2:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .