HouPython – Change clipping planes

#
#
#
#Change the clipping planes in the viewport. Useful if you often change between extremely large objects and very small ones.
import toolutils

nearFar = (0.1, 2000000)

viewport = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer).curViewport()
viewport.defaultCamera().setClipPlanes(nearFar)