Spark

Spark allows you to search and execute Maya MEL commands, Maya Runtime commands and your personal tools within one simple and clear interface.

Usage

After start, you can see below five most recent and five most popular commands you have executed. Use keyboard up and down arrows to choose a command and hit Enter to execute, or you can double click on command with the same result.

  • Start typing to search within Spark built-in or your own tools.
  • Start your search string with @ to search in Maya MEL commands
  • Start your search string with # to search in Maya Runtime Commands
  • Start your search string with ! to search everywhere.

Adding Tools

There are 2 ways to add custom tools to Spark.

  1. The easy way is to type Spark Configuration Directory and execute it in Spark. It will open configuration directory in explorer. Add your tool description to tools_list_user.yaml and save it.
  2. Also you can edit file FOLDER_YOU_PUT_FXPT/fxpt/fx_spark/tools_list.yaml and put your tool description there.

Both of these files are simple YAML configs with very easy syntax.
MEL command record should look something like this:

- name: My MEL Command
  mel: myMelCommand
  annotation: My Super Cool MEL Command

And Python command like this:

- name: My Python Command
  python: myPythonCommand
  annotation: My Super Cool Python Command

Next start your tools will be available in Spark.

Installation

Spark is a part of FX Python Tools. Download fxpt from Github and place it in your PYTHONPATH directory. Spark is very useful when assigned to hotkey, so make one with the following python code:

from fxpt.fx_spark import fx_spark
fx_spark.run()

Comments are closed.