IGH_ScriptInstance

References
public interface IGH_ScriptInstance
Script running as a component, rather than as a plain script.

Methods

AfterRun

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

BeforeRun

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

Draw

#
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.