Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Installation: dg_voroPy.py goes in your maya python path, this can be set with maya.env check maya docs to see how. dg_voro_py_UI.mel goes in your Maya script directory.
type dg_voro_py_UI(); in the script editor, or make a shelf button.
Voronoi shatter requires a closed 3d poly mesh object and a group of locators to define the cell centres. Select the object first then the locator group and click the button.
two locator conversion utilities are provided: particles to locators... select particles, click the button. constrained particles to locators... select a poly mesh, then particles. The resulting locators are constrained within the bounds of the selected mesh.
NB. for best results, make sure your poly mesh is error free, and without construction history. The script will work on a mesh with construction history, but will populate your scene with lots of empty transforms.