0
$\begingroup$

I'm trying to get/set tracking values of the currenct active clip in the motion tracking tab, but I'm having some problems.

Is there a way to get the currently loaded clip without knowing the name? I thought that using context.active_clip would work, but that returns None.

Currently I need to loop over all clips with:

for clip in bpy.data.movieclips:
    for o in clip.tracking.objects:
        print(o)
$\endgroup$

1 Answer 1

0
$\begingroup$

It seems bpy.context.edit_movieclip is doing that I was looking for.

$\endgroup$

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.