1
$\begingroup$

I have this at the end of a function, so every time I execute it, I would like to use view_all for those three area types from whatever area is active. But I get an obvious context error.

        bpy.ops.action.view_all()
        bpy.ops.graph.view_all()
        bpy.ops.timeline.view_all()

So, how can I use all three from a single context area?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.