# Rig UI & Custom Properties

## Autorun Script System

The Endertainer Rig presets come with a Rig UI autorun script system. This system will generate a panel that gives you access to all custom property settings in a PROP bone. It works by running a Python script every time you open the blend file containing the rig with the autorun script. And this script is linked to the rig's armature. So whenever you import the rig to another blend file, the autorun script will be imported as well. Also, the Rig UI only shows up when you select the rig's armature.

The Endertainer Rig presets include a Rig UI auto-run script system. This system generates a panel that provides access to all custom property settings.

It works by running a Python script each time you open a .blend file containing the rig with the auto-run script. The script is linked to the rig’s armature, so when you import the rig into another .blend file, the auto-run script is included as well.

The Rig UI panel appears on the sidebar only when the rig’s armature is selected.

<figure><img src="https://517145833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNSnZWGFAkrNOu0viEa54%2Fuploads%2FfVI6N2KQv9bToeSxSSWQ%2Fblender_oGQOmxqbgV.png?alt=media&#x26;token=55445112-974d-4247-b5ac-58f9d50cc61d" alt="" width="515"><figcaption></figcaption></figure>

To use the Rig UI, click `Allow Execution` when the pop-up appears after opening a .blend file containing the rig. This enables all auto-run scripts in the file.

Keep in mind that this applies globally to any other rigs with their own Rig UI systems, which will also be activated.

<figure><img src="https://517145833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNSnZWGFAkrNOu0viEa54%2Fuploads%2F2ldw0O62EzD5fTRYrrbs%2Fblender_epEZaC1uIa.png?alt=media&#x26;token=95ed08e3-01e1-44ed-83f2-9e8ceb53b58e" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="danger" %}
Be cautious when working with scripts. Only allow execution for scripts from trusted sources to avoid running potentially malicious code.
{% endhint %}

If the Rig UI doesn’t appear, such as after first importing the rig, try running the script manually by clicking the ▶︎ button in the `Text Editor` within the `Scripting` workspace.

<figure><img src="https://517145833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNSnZWGFAkrNOu0viEa54%2Fuploads%2FSevYg52zajBVSJRZMNot%2Fblender_gfu901Wzex.png?alt=media&#x26;token=386f755d-c821-413d-8991-f999d5cdc584" alt="" width="495"><figcaption></figcaption></figure>

## Custom Properties

Although the Endertainer Rig preset uses the Rig UI to adjust the rig’s settings, under the hood, it actually modifies the custom properties stored in the rig’s bones. These properties act as switches that enable or disable specific features.

You can access these custom properties by selecting a bone that contains them, then navigating to `Bone Properties → Custom Properties` or using the `Sidebar → Properties` panel.

<figure><img src="https://517145833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNSnZWGFAkrNOu0viEa54%2Fuploads%2FFtsZA7gSJ0oLVR4GoduJ%2FCustomProperties.png?alt=media&#x26;token=f694e135-bb47-4612-a4d2-73425464a1d0" alt="" width="563"><figcaption></figcaption></figure>
