ScriptSpot

Script

Voxelizer

By luima · Credited author: Luima · 2010-12-10

Version
2.0
Version requirement
2008-2011
Date updated
2010-12-10
Votes
41
Download
Download
Description

This is a script i created for convert animated object into voxels, maintaining correct voxel animation, it also support multimaterials (please check video tutorial). i also added a voxel material so it can simulate fillet on each voxel. i hope you find this useful. below is a video of the script in action, and a video tutorial.

NEW UPDATE to version 2.0
i sorted some errors and fix them, please update the script and replace the old one
UPDATE:
Thanks to Anubis for optimizing the code, now it works better.

Videos
Attachments

Tags: volume, Pixel, voxels, voxelizer

Comments (7)

Same

Bid · 2012-08-19

when I go to add this as a button to the UI, it crashes 3DS (using 2012 x64 on win7). I realize this is an older script and there haven't been comments in a long while, but this looks like a great script and thought I'd try to nudge for an update.

Quick fix

D-zaster · 2013-07-02

I know this script an comment thread is over a year old, but i decided to test it out in newer versions of Max. It is buggy in Max 2014- but I am beginning to suspect 2014 has some volume select bugs that could be the cause. Anyway, to get this working in 2012, just edit the first instance of "VBox" to "vbox" and it will work in 2012. Just open the script in max, make the change and save. you should then be able to add the UI toolbar without a crash. Also DO NOT place the script in the UI\Macroscipts folder!! place it in the 3ds Max 2012\Macroscripts folder or Max 2012 will LOCK UP ON LAUNCH

can't install with max 2012

mathdynn · 2011-11-08

max crash when i try to install the script in max 2012, it's when i create the button for the menu

kilad · 2010-12-12

or use addmodifier if you're applying to the whole object

Anubis · 2010-12-11

nice script

i see you use modPanel
and it require the Modify panel to be open.

if selection.count == 1 then
(
   $.name = "model2voxel"
   max modify mode -- FiX
   modPanel.addModToSelection (Cap_Holes ()) ui:on
...

cheers

JokerMartini · 2010-12-10

bugs out when i run it.

luima · 2010-12-11

can you please tell me the version of max you are using and what is the bug?
thanks in advance.