SkinLayerStudio API (Beta)
/
API Reference
/
API
pick_all()
Download MarkdownLoads only the skinned meshes whose names you pass. The load is the same as toolbar Pick All, without the chooser dialog.
An empty list or a string returns no_mesh before any DCC call. If none of the names are in the scene, the error is also no_mesh. Meshes you did not name are not loaded.
After several meshes are in, call use to choose the active one. apply_to_skin() writes only the active mesh.
Signature
api.pick_all(names) -> result
| Field | Meaning |
|---|---|
ok |
True on success. |
error |
Failure code. Empty on success. The path is not included. |
no_mesh |
The name list is empty, or those meshes are not in the scene. |
no_dcc |
No DCC is connected. |
Example
`python
result = api.pick_all(["Body", "Shirt"])
print(result.ok, api.meshes())