GH_ScriptInstance

public abstract class GH_ScriptInstance : IGH_ScriptInstance
Base a script instance derives from. This is the type a scripter writes, and it does nothing on its own; each scripting platform provides its own implementation with the members a script is given.

Methods

AfterRun

#
public virtual void AfterRun()
Override to perform some logic after all calls to RunScript have completed.
AfterRun

BeforeRun

#
public virtual void BeforeRun()
Override to perform some logic before any call to RunScript.
BeforeRun

Draw

#
public virtual void Draw(DisplayBag bag, CancellationToken token)
Override to draw into the Rhino viewports. Keep whatever is drawn here on the instance.
bag (DisplayBag)Bag to draw into.
token (CancellationToken)Token cancelling the draw.
Draw