> For the complete documentation index, see [llms.txt](https://alpaca4d.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alpaca4d.gitbook.io/docs/examples/custom-script.md).

# Custom Script

The following workflow allows to run any OpenSees tcl script within Grasshopper.

<figure><img src="https://raw.githubusercontent.com/Alpaca4d/alpaca4d.github.io/refs/heads/main/doc/examples/custom-script/custom-script.png" alt=""><figcaption></figcaption></figure>

[custom-code](https://raw.githubusercontent.com/Alpaca4d/alpaca4d.github.io/main/doc/examples/custom-script/custom-script.gh)

You can use this setup as a starting point whenever you need an OpenSees feature that is not yet wrapped by Alpaca4d components.\
Simply replace the example `.tcl` content with your own script and keep the same I/O structure to run and post‑process results directly in Grasshopper.
