SkinLayerStudio API (Beta) / API Reference / API

save_as()

Markdownダウンロード

指定した .sls パスへ保存し、そのパスを現在のファイルにします。File > Save As と同じです。

拡張子は自動では付きません。末尾が .sls でなければ unsupported です。.idt には書きません。

シグネチャ

api.save_as(path) -> result
フィールド 意味
ok 成功なら True。
error 失敗コード。成功なら空。パスは入りません。
unsupported パスが .sls で終わりません。
bad_path 親フォルダが無い、またはパスがフォルダです。
no_data 保存するメッシュがありません。

例

`python result = api.save_as(r"D:/work/hero_v2.sls") print(result.ok, result.error)

💬

Need help with the API?

Open a support ticket or join the community discussion.

お問い合わせ