ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Motion​Builder

by matthewkapfhammer WinLinux ALL

Send selected Python code snippets or whole files from SublimeText to MotionBuilder via telnet.

Details

Installs

  • Total 118
  • Win 109
  • Mac 0
  • Linux 9
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

MotionBuilderSublime

A Sublime Text 2/3 plugin.

Send selected Python code snippets or whole files from SublimeText to MotionBuilder via telnet.


Installation

Easy Install

You can install this plugin directly from Sublime Package Control:

https://packagecontrol.io/packages/MotionBuilder

Note: Due to current naming policies, the listed package name is MotionBuilder - not MotionBuilderSublime.

Manual Install

  1. clone this repo into the SublimeText2/3 -> Preference -> Browse Packages directory:
    git clone git://github.com/matthewkapfhammer/MotionBuilderSublime.git

  2. Edit the MotionBuilderSublime.sublime-settings file, setting the port to match the commandPorts you have configured in MotionBuilder.

  3. Optionally edit the keymap file to change the default hotkey from ctrl+alt+shift+return to something else.

Note: Ideally you would make your custom changes to the user settings and not the default settings, so that they do not get overwritten when the plugin is updated.

Usage

To send a snippet, simply select some code in a Python script, and hit ctrl+alt+shift+return, or right click and choose “Send To MotionBuilder”. A telnet connection will be made to a running MotionBuilder instance on the configured port matching Python, and the code will be run in MotionBuilder's environment.

Beyond The Plugin

The function that sends a Python command to MotionBuilder can also be used in any external application.

See MotionBuilderSublime.py -> telnet_write

Credits

MotionBuilderSublime is inspired by and primarily based on MayaSublime by Justin Israel.

Additional credit belongs to Chris Evans for sharing how to handle a telnet connection to MotionBuilder in his blog post, Creating Interactive MotionBuilder User Interface Tools.