2
$\begingroup$

How can I return the playhead frame number position, in the VSE, to a variable in script?

I'm not sure where in the API to look.

$\endgroup$

1 Answer 1

4
$\begingroup$

The VSE current frame is the same as the current frame for the rest of blender, which is a property of the current scene.

It can be accessed with bpy.context.scene.frame_current and set with bpy.context.scene.frame_set(frameNumber).

The best way to figure out the Python code for a specific property is to find it in the interface and hover your cursor over it, which will reveal the python code. In this case you can hover your cursor over the frame values in a Timeline editor.

$\endgroup$
0

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.