SpaceImageEditor(Space)
base classes — bpy_struct, Space
- class bpy.types.SpaceImageEditor(Space)
Image and UV editor space data
- annotation
Annotation data for this space
- Type:
- blend_factor
Overlay blending factor of rasterized mask (in [0, 1], default 0.7)
- Type:
float
- cursor_location
2D cursor location for this view (array of 2 items, in [-inf, inf], default (0.0, 0.0))
- Type:
- display_channels
Channels of the image to display (default
'COLOR')COLOR_ALPHAColor & Alpha – Display image with RGB colors and alpha transparency.COLORColor – Display image with RGB colors.ALPHAAlpha – Display alpha transparency channel.Z_BUFFERZ-Buffer – Display Z-buffer associated with image (mapped from camera clip start to end).REDRed.GREENGreen.BLUEBlue.
- Type:
Literal[‘COLOR_ALPHA’, ‘COLOR’, ‘ALPHA’, ‘Z_BUFFER’, ‘RED’, ‘GREEN’, ‘BLUE’]
- image_user
Parameters defining which layer, pass and frame of the image is displayed (readonly, never None)
- Type:
- mask_display_type
Display type for mask splines (default
'OUTLINE')OUTLINEOutline – Display white edges with black outline.DASHDash – Display dashed black-white edges.BLACKBlack – Display black edges.WHITEWhite – Display white edges.
- Type:
Literal[‘OUTLINE’, ‘DASH’, ‘BLACK’, ‘WHITE’]
- mask_overlay_mode
Overlay mode of rasterized mask (default
'ALPHACHANNEL')ALPHACHANNELAlpha Channel – Show alpha channel of the mask.COMBINEDCombined – Combine space background image with the mask.
- Type:
Literal[‘ALPHACHANNEL’, ‘COMBINED’]
- mode
Editing context being displayed (default
'VIEW')- Type:
Literal[Space Image Mode All Items]
- overlay
Settings for display of overlays in the UV/Image editor (readonly, never None)
- Type:
- pivot_point
Rotation/Scaling Pivot (default
'BOUNDING_BOX_CENTER')BOUNDING_BOX_CENTERBounding Box Center – Pivot around bounding box center of selected object(s).CURSOR3D Cursor – Pivot around the 3D cursor.INDIVIDUAL_ORIGINSIndividual Origins – Pivot around each object’s own origin.MEDIAN_POINTMedian Point – Pivot around the median point of selected objects.ACTIVE_ELEMENTActive Element – Pivot around active object.
- Type:
Literal[‘BOUNDING_BOX_CENTER’, ‘CURSOR’, ‘INDIVIDUAL_ORIGINS’, ‘MEDIAN_POINT’, ‘ACTIVE_ELEMENT’]
- show_annotation
Show annotations for this view (default False)
- Type:
bool
- show_gizmo
Show gizmos of all types (default True)
- Type:
bool
- show_gizmo_active_node
Context sensitive gizmo for the active node (default True)
- Type:
bool
Viewport navigation gizmo (default True)
- Type:
bool
- show_mask_overlay
(default False)
- Type:
bool
- show_mask_spline
(default True)
- Type:
bool
- show_maskedit
Show Mask editing related properties (default False, readonly)
- Type:
bool
- show_paint
Show paint related properties (default False, readonly)
- Type:
bool
- show_region_asset_shelf
Display a region with assets that may currently be relevant (such as brushes in paint modes, or poses in Pose Mode) (default False)
- Type:
bool
- show_region_hud
(default False)
- Type:
bool
- show_region_tool_header
(default False)
- Type:
bool
- show_region_toolbar
(default False)
- Type:
bool
- show_region_ui
(default False)
- Type:
bool
- show_render
Show render related properties (default False, readonly)
- Type:
bool
- show_repeat
Display the image repeated outside of the main view (default False)
- Type:
bool
- show_sequencer_scene
Display the render result for the sequencer scene instead of the active scene (default False)
- Type:
bool
- show_stereo_3d
Display the image in Stereo 3D (default False)
- Type:
bool
- show_uvedit
Show UV editing related properties (default False, readonly)
- Type:
bool
- ui_mode
Editing context being displayed (default
'VIEW')VIEWView – Inspect images or render results.PAINTPaint – Paint images in 2D.MASKMask – View and edit masks.
- Type:
Literal[‘VIEW’, ‘PAINT’, ‘MASK’]
- use_image_pin
Display current image regardless of object selection (default False)
- Type:
bool
- use_realtime_update
Update other affected window spaces automatically to reflect changes during interactive operations such as transform (default False)
- Type:
bool
- uv_editor
UV editor settings (readonly, never None)
- Type:
- zoom
Zoom factor (array of 2 items, in [-inf, inf], default (0.0, 0.0), readonly)
- Type:
bpy_prop_array[float]
- zoom_percentage
Zoom percentage (in [0.4, 80000], default 100.0)
- Type:
float
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (
bpy.types.Struct| None) – The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (type | None) – The value to return when not found.
- Returns:
The class or default when not found.
- Return type:
type
- classmethod draw_handler_add(callback, args, region_type, draw_type)
Add a new draw handler to this space type. It will be called every time the specified region in the space type will be drawn. Note: All arguments are positional only for now.
- Parameters:
callback (Callable[..., Any]) – A function that will be called when the region is drawn. It gets the specified arguments as input, it’s return value is ignored.
args (tuple[Any, ...]) – Arguments that will be passed to the callback.
region_type (str) – The region type the callback draws in; usually
WINDOW. (bpy.types.Region.type)draw_type (str) – Usually
POST_PIXELfor 2D drawing andPOST_VIEWfor 3D drawing. In some casesPRE_VIEWcan be used.BACKDROPcan be used for backdrops in the node editor.
- Returns:
Handler that can be removed later on.
- Return type:
object
- classmethod draw_handler_remove(handler, region_type)
Remove a draw handler that was added previously.
- Parameters:
handler (object) – The draw handler that should be removed.
region_type (str) – Region type the callback was added to.