SkinLayerStudio API (Beta) / API Reference / API

pick()

Download Markdown

Brings in the one skinned mesh selected in the DCC. Same as the toolbar Pick button.

If no DCC is connected or it is not ready, the error is no_dcc. If nothing is selected and there is no active mesh to pick again, the error is no_selection. A mesh without Skin is no_skin. No message box appears.

This is not skin.pull(). Pick also creates the slot, the mesh, and the bone tree.

Signature

api.pick() -> result
Field Meaning
ok True on success.
error Failure code. Empty on success. The path is not included.
no_dcc No DCC is connected.
no_selection No mesh is selected.
no_skin The selection has no Skin.

Example

`python result = api.pick() print(result.ok, result.error)

💬

Need help with the API?

Open a support ticket or join the community discussion.

Contact Support