MelをPythonにコンバートするScript公開【Mel to Py Converter Serpens】

Tips,Python,Maya


Mel to Py Converter SerpensをGumroadで公開しました
gumroadで$2から購入できます(気が向いたらお賽銭投げてね)

MelをPythonに書き換えるとき、かなり大変なので自動化計画という感じです
現状の機能はこんな感じです
cmdsベース
importモジュールの自動設定
配列宣言の対応
エンコードをutf-8に定義
マルチバイト対応Script Editorを汚さない
Python のソースコードを自動で PEP8 に準拠させる(autopep8のインストール必須)

今後対応予定
.melをD&D対応
シンタックスハイライト
Tool上からpythonを実行する
ScriptEditからmelを取得する
など
を予定していますが開発はマイペースに進めています

現状はアルファー版ですのでいろいろエラー出ると思いますので
よかったらコードと一緒に教えてくれるとよりよくなりますー('ω')

Serpens document (日本語)

Serpens is "mel to python converter".
This Tool is cmds style, Encoding utf-8 declarations, Array compatible, Clean "Script Editor", Multibyte compatible and It automatically formats Python code to conform to the PEP 8 style guide to used autopep8.
It is currently under development.

Confirmed Supported Maya Versions:
2014, 2015, 2016, 2016.5, 2017, 2018, 2019, 2020

Serpens document (English)

Compatibility designed to work on future versions of Maya that are not yet out.
Not guaranteed to fully work on versions of Maya older than what is listed.