SkinLayerStudio API (Beta) / API Reference / API

pick()

下载 Markdown

从 DCC 取入当前选中的一个蒙皮网格。和工具栏的 Pick 一样。

没有 DCC 或还没连上是 no_dcc。没有选择、也没有可再拾取的当前网格是 no_selection。没有 Skin 是 no_skin。不会弹出提示窗。

这不是 skin.pull()。Pick 会在选择之后把槽、网格和骨骼树一起放上来。

签名

api.pick() -> result
字段 含义
ok 成功时为 True。
error 失败代码。成功时为空。不含路径。
no_dcc 没有连接 DCC。
no_selection 没有选中网格。
no_skin 选择上没有 Skin。

示例

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

💬

Need help with the API?

Open a support ticket or join the community discussion.

联系支持