I have a basic menu script with a slider. The idea is that the slider will control the rotation of a bone. That bone will then rotate the object. I worked out the exact euler angles to rotate it by, and now I'm a little bit stuck. I've used C# for quite some time and C# has this thing called Mathf.Lerp, and I wondered if there is a python equivalent? If so, what is it?
Here is what I'm aiming for:
elif origin == 'screen_rotation': bones = bpy.context.object.pose.bones Mathf.Lerp(bones["Screen"].rotation_euler = 0, bones["Screen"].rotation_euler = 1.58825, screen_rotation)