# GH_ScriptInstance class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public abstract class GH_ScriptInstance : IGH_ScriptInstance
```

## Properties

- [ClippingBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/clippingbox.md): Override this method when you draw custom geometry.
- [Hidden](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/hidden.md)
- [IsPreviewCapable](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/ispreviewcapable.md)

## Methods

- [AfterRunScript](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/afterrunscript.md)
- [BeforeRunScript](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/beforerunscript.md)
- [DrawViewportMeshes](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/drawviewportmeshes.md): Override this method to draw meshes in the Rhino viewports.
- [DrawViewportWires](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/drawviewportwires.md): Override this method to draw points and curves in the Rhino viewports.
- [InvokeRunScript](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-scriptinstance/invokerunscript.md)
