# Unable to Drive Animation from Timeline using Scripted Expression Driver

And halfway through he shows an example of how to drive the y-rotation of an object via a driver with the script: bpy.context.scene.frame_current

His object then rotates according as he scrubs through the timeline. This doesn't work for me.

He's using Blender 2.8 and I'm using Blender 2.81.

Did scripting change in 2.81?

I'm running 2.81 on a Mac

A simple way around this issue would be to add an input variable with the the scene's current frame, then referencing it in the expression.

Your final setup will look like this:

The steps to set this up are as follows:

• Can simply use frame as the expression, no need for the variable. frame is known to the driver namespace and is scene.frame_current. – batFINGER Jan 9 at 23:19