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

# Saving button

Each button that can be created using the **Custom Buttons** plug-in is a python script. To save the script, click on **Save** or **Save as** and specify script name.

It is very important that the scripts must be located here

***Win: c:\Users\\%USERNAME%\AppData\Roaming\MAXON\CINEMA 4D (your version)\library\scripts***

***Mac:***\*\* /Users/**\_**%USERNAME%**\_**/Library/Preferences/Maxon/Maxon Cinema 4&#x44;**\_**(your version)**\_**/library/scripts\*\*

In this directory, you can distribute scripts to subdirectories. In addition to the script file, the plug-in creates additional files containing preset data. Please, don't delete or move it. Without these files, the button will not work.

After saving, you'll need to restart **Cinema 4D**. To do it quickly just open plugin window menu **Edit > Restart Cinema 4D.** The saved script button will be available in the **Script > User** **scripts** Cinema 4D \*\*\*\* menu. For convenience, you can place it on the toolbar or assign a hotkey.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://mikeudintools.gitbook.io/help/custom-buttons/saving-button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
