Skip to main content

SlicePlaneRenderSettings

Other

Settings for 3D slice plane rendering properties.

Import​

import ScriptingApi as api

# Access the class
# SlicePlaneRenderSettings is available via api.SlicePlaneRenderSettings

Properties​

opacity​

Opacity value for the texture (range: 0.0 to 1.0).

Type: float


reslice_interpolate​

Reslice interpolation mode (0=nearest, 1=linear, 2=cubic).

Type: int


texture_interpolate​

If true, applies texture interpolation; if false, uses nearest neighbor.

Type: bool


outline_visibility​

If true, shows the outline; if false, hides it.

Type: bool


clipping_mode​

Whether the plane cuts the objects of the 3D view open along the current slice, and which of the two halves it keeps (0=off, 1=keep front, 2=keep back). It applies to every visible object that has clipping enabled, and only while the plane is shown. Which half each value keeps depends on the orientation of the image data, so try the other value to swap sides. At most six planes cut at a time, or two while the 3D clipping box is enabled. Setting more than that turns the excess ones back off; use get_3d_slice_plane_clipping_mode() when a script depends on the resulting mode. The 3D clipping box cannot be inverted while any plane cuts.

Type: int


See Also​