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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alpaca4d.gitbook.io/docs/examples/custom-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
