View2D Operators¶
-
bpy.ops.view2d.
edge_pan
(outside_padding=0)¶ Pan the view when the mouse is held at an edge
- Parameters
outside_padding (int in [0, 100], (optional)) – Outside Padding, Padding around the region in UI units within which panning is activated (0 to disable boundary)
-
bpy.ops.view2d.
ndof
()¶ Use a 3D mouse device to pan/zoom the view
-
bpy.ops.view2d.
pan
(deltax=0, deltay=0)¶ Pan the view
- Parameters
deltax (int in [-inf, inf], (optional)) – Delta X
deltay (int in [-inf, inf], (optional)) – Delta Y
-
bpy.ops.view2d.
reset
()¶ Reset the view
-
bpy.ops.view2d.
scroll_down
(deltax=0, deltay=0, page=False)¶ Scroll the view down
- Parameters
deltax (int in [-inf, inf], (optional)) – Delta X
deltay (int in [-inf, inf], (optional)) – Delta Y
page (boolean, (optional)) – Page, Scroll down one page
-
bpy.ops.view2d.
scroll_left
(deltax=0, deltay=0)¶ Scroll the view left
- Parameters
deltax (int in [-inf, inf], (optional)) – Delta X
deltay (int in [-inf, inf], (optional)) – Delta Y
-
bpy.ops.view2d.
scroll_right
(deltax=0, deltay=0)¶ Scroll the view right
- Parameters
deltax (int in [-inf, inf], (optional)) – Delta X
deltay (int in [-inf, inf], (optional)) – Delta Y
-
bpy.ops.view2d.
scroll_up
(deltax=0, deltay=0, page=False)¶ Scroll the view up
- Parameters
deltax (int in [-inf, inf], (optional)) – Delta X
deltay (int in [-inf, inf], (optional)) – Delta Y
page (boolean, (optional)) – Page, Scroll up one page
-
bpy.ops.view2d.
scroller_activate
()¶ Scroll view by mouse click and drag
-
bpy.ops.view2d.
smoothview
(xmin=0, xmax=0, ymin=0, ymax=0, wait_for_input=True)¶ Undocumented, consider contributing.
- Parameters
xmin (int in [-inf, inf], (optional)) – X Min
xmax (int in [-inf, inf], (optional)) – X Max
ymin (int in [-inf, inf], (optional)) – Y Min
ymax (int in [-inf, inf], (optional)) – Y Max
wait_for_input (boolean, (optional)) – Wait for Input
-
bpy.ops.view2d.
zoom
(deltax=0.0, deltay=0.0, use_cursor_init=True)¶ Zoom in/out the view
- Parameters
deltax (float in [-inf, inf], (optional)) – Delta X
deltay (float in [-inf, inf], (optional)) – Delta Y
use_cursor_init (boolean, (optional)) – Use Mouse Position, Allow the initial mouse position to be used
-
bpy.ops.view2d.
zoom_border
(xmin=0, xmax=0, ymin=0, ymax=0, wait_for_input=True, zoom_out=False)¶ Zoom in the view to the nearest item contained in the border
- Parameters
xmin (int in [-inf, inf], (optional)) – X Min
xmax (int in [-inf, inf], (optional)) – X Max
ymin (int in [-inf, inf], (optional)) – Y Min
ymax (int in [-inf, inf], (optional)) – Y Max
wait_for_input (boolean, (optional)) – Wait for Input
zoom_out (boolean, (optional)) – Zoom Out
-
bpy.ops.view2d.
zoom_in
(zoomfacx=0.0, zoomfacy=0.0)¶ Zoom in the view
- Parameters
zoomfacx (float in [-inf, inf], (optional)) – Zoom Factor X
zoomfacy (float in [-inf, inf], (optional)) – Zoom Factor Y
-
bpy.ops.view2d.
zoom_out
(zoomfacx=0.0, zoomfacy=0.0)¶ Zoom out the view
- Parameters
zoomfacx (float in [-inf, inf], (optional)) – Zoom Factor X
zoomfacy (float in [-inf, inf], (optional)) – Zoom Factor Y