1

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?

Zafio
  • 254
  • 1
  • 7
  • 1
    See http://blender.stackexchange.com/a/35038/1363 and linked questions. You need to override the context (supply a custom context). – CodeManX Aug 11 '15 at 00:28

0 Answers0