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.
Destructor, ...This script is definitely not a new concept here but one that I have used for several years. I feel it is by far better than the other particle-instance-geo-rebuild scripts around (for free at least).
This script will take an array of selected objects and instance them onto particles that have been plotted at each object pivot. When script is finished it may look like nothing has happened because it rebuilds the object to be destroyed, however select the particles and add some fields!
new for v2.0 makes the script use nParticles. Doing this allows for using faked self collisions which work pretty well to help fake the geometry colliding together.
Fixed the pathing issue. This should now just live in the /destructor folder. v2.0 was supposed to have fixed this however v2.1 should fix it now. Sorry for the confusion.
1. Have your object pre-shattered or broken apart. This script does not actually shatter up your mesh.
2. Select all of your objects and click the 'Add to List' button.
3. Go down and give the Instancer a name. You must do this.
4. Once that is setup properly the bottom button should be clickable.
5. Click it, and the script will draw particles on the pivots of all of your objects in the list and instance them back on.
6. Create some fields on the new particles that are being instanced and watch them simulate.
To install just unzip place the /destructor folder in your scripts directory.
If you're unsure of where the scripts folder it is looking for is located you
can run this MEL command in the Script Editor to find out.
Place this command on your shelf to source it and it should automatically run.
email email@example.com if you have any questions, thoughts or ideas on how to improve.
IF YOU ARE RECEIVING AN ERROR THEN YOU HAVE MOVED THE SCRIPTS. use this command in the script editor. ... internalVar -usd ... unzip the archive to this folder and leave them where they are, do not copy/move them out. Then try sourcing again.