<commit_before># Maya_Custom_Deformer_Plugin
A plugin for Maya that writes Hello World

Based on the tutorials by <NAME>:
* http://www.chadvernon.com/blog/resources/maya-api-programming/your-first-plug-in/
* http://www.chadvernon.com/blog/maya/compiling-maya-plug-ins-with-cmake/

And this tutorial for creating deformer plugins:
* http://www.ngreen.org/2014/08/implementing-a-simple-maya-python-deformer/

Build:
  * OSX
    * mkdir build
    * cd build
    * cmake -G "Unix Makefiles" -DMAYA_VERSION=2015 ../ (or whatever maya version)
  * Linux
    * ..
  * Windows
    * ..

Compile:
  * OSX
    * cd in to build/ directory
    * sudo cmake --build . --config Release --target install
  * Linux
    * ..
  * Windows
    * ..

Load plugin:
  * OSX:
    * The compiler will build the file sampleplugin.bundle,
  * Linux
    * ..
  * Windows
    * ..
  * Open Maya and go to Window -> Settings/Preferences -> Plug-in Manager
  * Browse for sampleplugin and open.

Now the helloWorld function can be run from the python terminal by:
  * import maya.cmds as cmds
  * cmds.helloWorld()

The deformer plugin is used as follows:
  * Create an object to be deformed
  * Select the object
  * Apply the deformer with:
  	cmds.deformer(type='shapeMatchDeformer')

A default scene can be created by running the script melScripts/createExampleScene.mel
This will create a sphere and add a shapeMatchDeformer-node to it. It will
also connect all the attributes needed from the rigid body to to be able to
calculate the deformations.<commit_msg>Update readme.<commit_after># Maya_Custom_Deformer_Plugin
A plugin for Maya that writes Hello World

Base from a simple hello world maya plugin:
https://github.com/kbladin/Maya_Plugin_Hello_World

The deformation is based on this paper:
http://www.beosil.com/download/MeshlessDeformations_SIG05.pdf

Build:
  * OSX
    * mkdir build
    * cd build
    * cmake -G "Unix Makefiles" -DMAYA_VERSION=2015 ../ (or whatever maya version)
  * Linux
    * ..
  * Windows
    * ..

Compile:
  * OSX
    * cd in to build/ directory
    * sudo cmake --build . --config Release --target install
  * Linux
    * ..
  * Windows
    * ..

Load plugin:
  * OSX:
    * The compiler will build the file sampleplugin.bundle,
  * Linux
    * ..
  * Windows
    * ..
  * Open Maya and go to Window -> Settings/Preferences -> Plug-in Manager
  * Browse for sampleplugin and open.

Now the helloWorld function can be run from the python terminal by:
  * import maya.cmds as cmds
  * cmds.helloWorld()

The deformer plugin is used as follows:
  * Create an object to be deformed
  * Select the object
  * Apply the deformer with:
  	cmds.deformer(type='shapeMatchDeformer')

A default scene can be created by running the script melScripts/createExampleScene.mel
This will create a sphere and add a shapeMatchDeformer-node to it. It will
also connect all the attributes needed from the rigid body to to be able to
calculate the deformations.
{'fraction_non_alphanumeric': 0.08579179382841641, 'fraction_numerical': 0.0054255679891488644, 'mean_word_length': 3.0802213001383127, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5335947', 'n_tokens_mistral': 942, 'n_tokens_neox': 901, 'n_words': 331}