• 日本語
  • PhotoShopのJSXのようにSpineファイルの中身を一括処理したい

お世話になっております。

件名の通り、PhotoShopのJSXのように
スクリプトでSpineファイルの中身を一括処理したいのですが可能でしょうか?

例)とあるフォルダの中にあるすべてのSpineファイルのrootボーンの名前を変更する等

よろしくお願いいたします。

Related Discussions
...
  • تم التحرير

Hello, while we don't offer this out-of-the-box, you can use your tools to process the JSON that Spine outputs on export, then reimport it in Spine.

こんにちは、この標準機能は提供していませんが、ツールを使用して、Spineがエクスポート時に出力するJSONを処理し、Spineに再インポートできます。

お世話になります。
迅速なご返信ありがとうございます。

以下の手順で試してみましたがうまくいきませんでした。

  1. Spineから Jsonファイルをexport
  2. JsonファイルをtextEditorで開き 、試しに {"name":"root"} を {"name":"root_test"}に変更
  3. Spineに戻り データインポート で修正したJsonファイルを読み込む

「スケルトンインポートエラー」スケルトンインポート中にエラーが発生しました。有効な
スケルトンJSONまたはバイナリファイルを選択してください。

というエラーがでました。そもそも上記の手順自体間違っているのでしょうか?
度々申し訳ございませんが、よろしくお願いいたします。

※お伝えし忘れておりましたが、Spineのバージョンは3.6となります。

Hello, I tested your procedure and got the same error.
If you only change the name of the bone, but not all the instances where the bone has a new name, you will create an invalid json.

For this to work you need to use "Find and replace" in your text editor and replace every time the name "root" appears with "root_test", then it will work. I just tested this and the json that didn't work now is accepted by Spine.

こんにちは、手順をテストしましたが、同じエラーが発生しました。
ボーンの名前のみを変更し、ボーンに新しい名前が付けられているすべてのインスタンスを変更しない場合、無効なjsonが作成されます。

これが機能するには、テキストエディタで「検索と置換」を使用し、「root」という名前が「root_test」で表示されるたびに置き換える必要があります。 私はこれをテストしましたが、現在動作していなかったjsonはSpineに受け入れられました。