# ![](files/MayaVi(2f)ScriptingMayavi2(2f)MainModules_attachments/module_scp.png
# 
# Note that if you enable widget, you will be able to translate (move the
# mouse to the red frame), change the normal (move the mouse to the grey
# arrow) of the cutplanes in "real-time" :
# 
# ![](files/MayaVi(2f)ScriptingMayavi2(2f)MainModules_attachments/module_scp_widg_en.png
# 
# You can also display the cutplanes as "warped surfaces", just adding a
# few lines, setting the scale factor and the normals to be computed
# (smoother surface) or not:
# 
# <codecell>


scp.enable_warp_scalar = True
scp.compute_normals = True
scp.warp_scalar.filter.scale_factor = 20

# <markdowncell>

# ![](files/MayaVi(2f)ScriptingMayavi2(2f)MainModules_attachments/module_scp_warp.png
# 
# Of course, you can add as many cutplanes as you want, oblique or not.
# 
# Let's see now a little more complex example : we want opacity to be set
# to 0.2 for each cutplane, and contours (\#10) for the same cutplanes
# added. Lines above have been changed as below:
# 
# Note: I agree, this is not the best way to write such a code. You can
# obviously write a method to do the same suff. But this is not the
# ![](files/MayaVi(2f)ScriptingMayavi2(2f)MainModules_attachments/module_scp.png
#
# Note that if you enable widget, you will be able to translate (move the
# mouse to the red frame), change the normal (move the mouse to the grey
# arrow) of the cutplanes in "real-time" :
#
# ![](files/MayaVi(2f)ScriptingMayavi2(2f)MainModules_attachments/module_scp_widg_en.png
#
# You can also display the cutplanes as "warped surfaces", just adding a
# few lines, setting the scale factor and the normals to be computed
# (smoother surface) or not:
#
# <codecell>

scp.enable_warp_scalar = True
scp.compute_normals = True
scp.warp_scalar.filter.scale_factor = 20

# <markdowncell>

# ![](files/MayaVi(2f)ScriptingMayavi2(2f)MainModules_attachments/module_scp_warp.png
#
# Of course, you can add as many cutplanes as you want, oblique or not.
#
# Let's see now a little more complex example : we want opacity to be set
# to 0.2 for each cutplane, and contours (\#10) for the same cutplanes
# added. Lines above have been changed as below:
#
# Note: I agree, this is not the best way to write such a code. You can
# obviously write a method to do the same suff. But this is not the