svenfraeys / mariSublime

Execute Mari commands from Sublime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mari Sublime

Execute selected code snippets or the whole .py file from sublime in mari.


Sublime 2 & 3 compatible

Installation


Download the zip file and extract the archive.
In sublime go to Preferences > Browse Packages.
Place the extracted folder in the sublime packages folder.

Enable Command Port in mari


User this command to toggle command port in mari
mari.app.enableCommandPort( not ( mari.app.commandPortEnabled() ) )

Usage


Select a code snippet and press ctrl + m.
Only the selected snippet will be executed in mari.
Deselect everything and press ctrl + m.
The whole file will be executed in mari.

Acknowledgements


https://github.com/justinfx/MayaSublime
https://github.com/svenfraeys/SublimeBlender
http://net.tutsplus.com/tutorials/python-tutorials/how-to-create-a-sublime-text-2-plugin/

Updates


seperated logic in a module to use as a library

About

Execute Mari commands from Sublime


Languages

Language:Python 95.2%Language:JavaScript 4.8%