SkinLayerStudio API (Beta) / API Reference / Layer

rename()

Download Markdown

Renames this layer. The text in the layer panel changes with it.

Avoid an empty name, or a name another layer already uses. Do not overwrite the system layer names [Base], [Cache], [Export], and [Fallback].

Signature

layer.rename(new_name) -> None

Example

layer = api.layer("Layer 1")
layer.rename("Arm")
print(layer.name)
💬

Need help with the API?

Open a support ticket or join the community discussion.

Contact Support