View3DShading(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.View3DShading(bpy_struct)¶ Settings for shading in the 3D viewport
-
background_color¶ Color for custom background color
Type: float array of 3 items in [0, 1], default (0.05, 0.05, 0.05)
-
background_type¶ Way to draw the background
THEMETheme, Use the theme for background color.WORLDWorld, Use the world for background color.VIEWPORTViewport, Use a custom color limited to this viewport only.
Type: enum in [‘THEME’, ‘WORLD’, ‘VIEWPORT’], default ‘THEME’
-
cavity_ridge_factor¶ Factor for the cavity ridges
Type: float in [0, 250], default 1.0
-
cavity_type¶ Way to draw the cavity shading
WORLDWorld, Cavity shading computed in world space, useful for larger-scale occlusion.SCREENScreen, Curvature-based shading, useful for making fine details more visible.BOTHBoth, Use both effects simultaneously.
Type: enum in [‘WORLD’, ‘SCREEN’, ‘BOTH’], default ‘WORLD’
-
cavity_valley_factor¶ Factor for the cavity valleys
Type: float in [0, 250], default 1.0
-
color_type¶ Color Type
MATERIALMaterial, Show material color.SINGLESingle, Show scene in a single color.OBJECTObject, Show object color.RANDOMRandom, Show random object color.VERTEXVertex, Show active vertex color.TEXTURETexture, Show texture.
Type: enum in [‘MATERIAL’, ‘SINGLE’, ‘OBJECT’, ‘RANDOM’, ‘VERTEX’, ‘TEXTURE’], default ‘MATERIAL’
-
curvature_ridge_factor¶ Factor for the curvature ridges
Type: float in [0, 2], default 1.0
-
curvature_valley_factor¶ Factor for the curvature valleys
Type: float in [0, 2], default 1.0
-
light¶ Lighting Method for Solid/Texture Viewport Shading
STUDIOStudio, Display using studio lighting.MATCAPMatCap, Display using matcap material and lighting.FLATFlat, Display using flat lighting.
Type: enum in [‘STUDIO’, ‘MATCAP’, ‘FLAT’], default ‘FLAT’
-
object_outline_color¶ Color for object outline
Type: float array of 3 items in [0, 1], default (0.0, 0.0, 0.0)
-
selected_studio_light¶ Selected StudioLight
Type: StudioLight, (readonly)
-
shadow_intensity¶ Darkness of shadows
Type: float in [0, 1], default 0.5
-
show_backface_culling¶ Use back face culling to hide the back side of faces
Type: boolean, default False
-
show_cavity¶ Show Cavity
Type: boolean, default False
-
show_object_outline¶ Show Object Outline
Type: boolean, default False
-
show_shadows¶ Show Shadow
Type: boolean, default False
-
show_specular_highlight¶ Render specular highlights
Type: boolean, default False
-
show_xray¶ Show whole scene transparent
Type: boolean, default False
-
show_xray_wireframe¶ Show whole scene transparent
Type: boolean, default False
-
single_color¶ Color for single color mode
Type: float array of 3 items in [0, 1], default (0.0, 0.0, 0.0)
-
studio_light¶ Studio lighting setup
Type: enum in [‘DEFAULT’], default ‘DEFAULT’
-
studiolight_background_alpha¶ Show the studiolight in the background
Type: float in [0, 1], default 0.0
-
studiolight_rotate_z¶ Rotation of the studiolight around the Z-Axis
Type: float in [-3.14159, 3.14159], default 0.0
-
type¶ Method to display/shade objects in the 3D View
WIREFRAMEWireframe, Display the object as wire edges.SOLIDSolid, Display in solid mode.MATERIALLook Dev, Display in Look Dev mode.RENDEREDRendered, Display render preview.
Type: enum in [‘WIREFRAME’, ‘SOLID’, ‘MATERIAL’, ‘RENDERED’], default ‘WIREFRAME’
-
use_dof¶ Use depth of field on viewport using the values from the active camera
Type: boolean, default False
-
use_scene_lights¶ Render lights and light probes of the scene
Type: boolean, default False
-
use_scene_world¶ Use scene world for lighting
Type: boolean, default False
-
use_world_space_lighting¶ Make the lighting fixed and not follow the camera
Type: boolean, default False
-
wireframe_color_type¶ Color Type
MATERIALMaterial, Show material color.SINGLESingle, Show scene in a single color.OBJECTObject, Show object color.RANDOMRandom, Show random object color.VERTEXVertex, Show active vertex color.TEXTURETexture, Show texture.
Type: enum in [‘MATERIAL’, ‘SINGLE’, ‘OBJECT’, ‘RANDOM’, ‘VERTEX’, ‘TEXTURE’], default ‘MATERIAL’
-
xray_alpha¶ Amount of alpha to use
Type: float in [0, 1], default 0.5
-
xray_alpha_wireframe¶ Amount of alpha to use
Type: float in [0, 1], default 0.5
-
classmethod
bl_rna_get_subclass(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The RNA type or default when not found. Return type: bpy.types.Structsubclass
-
classmethod
bl_rna_get_subclass_py(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The class or default when not found. Return type: type
-
Inherited Properties
Inherited Functions
References