SkinLayerStudio API (Beta) / API Reference / API

save()

下载 Markdown

保存到当前 .sls 路径。和 File > Save 一样。

从未保存过时是 no_path。不会弹出选文件窗口。只打开了 .idt 时,不会覆盖那个 .idt,返回 not_sls。保存 Init Dummy 不是这个调用。

签名

api.save() -> result
字段 含义
ok 成功时为 True。
error 失败代码。成功时为空。不含路径。
no_path 没有当前路径。用 save_as。
not_sls 当前文档不是 .sls。
no_data 没有可保存的网格。

示例

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

💬

Need help with the API?

Open a support ticket or join the community discussion.

联系支持