As a visualiser for speaker tools I’ve created a sound surface mapped in y direction to the baked frequency fcurves and in the x by a temp crossing fcurve to create a displacement map. It occurs to me I could also make an rgb normal map by crossing the tangent vector of the two fcurves.
Does anybody know any sneaky tricky ways to find the tangent vector of an fcurve point? Currently I can only think of using a limit to approx the derivate to get the gradient egx
f = frame dx = 0.00001 #some small number rise = fcurve.evaluate(f+dx) - fcurve.evaluate(f-dx) run = 2dx tangent = rise / run
Attached a quick pic of the surface.