"""Functions and tools to deal with Houdini parameter menus."""
# Future
from __future__ import annotations
# Standard Library
import functools
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import Callable, Sequence
# Globals
SEPARATOR_TOKEN = "__separator__"
"""This is the token Houdini will use to define a separator in a menu parameter."""
SEPARATOR_VALUE = ""
"""The value doesn't actually matter for a separator so just use an empty string."""
# Functions
[docs]
def format_orange_label_text(label: str) -> str:
"""Format a menu label to be orange.
Args:
label: The menu label value.
Returns:
The formatted label value.
"""
return f"{chr(2)}{label}"