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

Motion​Builder

by matthewkapfhammer WinLinux ST2/ST3

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

Details

Installs

  • Total 13
  • Win 13
  • OS X 0
  • Linux 0
Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11
Windows 1 0 0 0 0 0 0 0 1 2 1 0 0 1 0 3 0 2 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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.