Game Development Community

"Box Trick" MaxScript

by Russell Fincher · in Artist Corner · 02/25/2009 (1:59 pm) · 7 replies

Does anyone have a link to the "box trick" Max script that was posted as a resource a couple of years ago... the one that doesn't change the name or hierarchy of your node? I think the new website ate the old Resource.

About the author

Art Lead at Sickhead Games, focused on dev tools and prototyping, instructor/advisor at several Dallas colleges and universities, Associate Developer with GarageGames, champion of avant-garde game art at uncommonassembly.com.


#1
02/25/2009 (3:04 pm)
Ok, so the ideal "box trick" script would do the following:

The Basics:
Reset transforms of selected mesh(es)
Would not re-name the mesh(es)
Would not change the hierarchy of the meshe(es). If a particular mesh is a parent or child of another, it remains that way after the resetting.

Application:
Can be applied to multiple selected meshes at the same time
Can be applied to meshes by either selecting them in the viewport or selecting them in the schematic view.

I've got some very complicated hierarchies, and doing it manually or by using the Reset Xform script is killing me.
#2
02/25/2009 (3:19 pm)
Found some scripts here that may actually do the trick. Including one that runs Reset Xform, resets pivot to 0,0,0 and collapses the stack to a static mesh, all to a selected group of meshes spread across a hierarchy without moving them.

Edit... forgot to mention I also needed to set all the pivots to 0,0,0. That one was a freebie!

Guess I could have started Googling first. But I'd still like to hear what other people are using.

#3
02/25/2009 (11:12 pm)
I think at one point Logan released an updated "box trick" script. You might be able to find it by searching the GG website.
#4
02/26/2009 (6:48 am)
Thanks, Matt. Of course, the first thing I did was search the GG website, heh. But as I stated in my post, some of the old Resources just aren't around anymore, including Logan's updated box trick script. Is it just Logan's Resource, or is this happening to others?

But I guess since I needed to zero out the pivots of each mesh (which Logan's probably doesn't), it worked out in the end that I found one on my own.



#5
02/26/2009 (8:25 am)
@Russell

Here is the link in question to the boxtrick script, thanks for bringing this up, I wasn't aware the resource was busted.
#6
02/26/2009 (9:22 am)
Thanks Logan! I can't believe I ever did this with an actual box.
#7
02/26/2009 (9:35 am)
I will be releasing a maxscript rollout called "Doit!" within a day or 2. It is a 'quick and dirty' panel that I made to export model libraries quickly, so don't expect it to save the world.

...some of the buttons seem a bit simple but the entire idea here is to speed up the export process. I made 1 button that takes your model, creates 2 detail levels (64,2), auto-lod's the detail2 level to 33% of the main model vertex count, places a box collision, bounds and does all needed connections...and opens the export window for you. There are other features as well.
+c = boxcollision
-c = no collision
+L = autogen lod for detail2 mesh
-L = no lod generation
www.ericrbarth.com/www/imagess/doit.jpg

I will blog a release as soon as I get the tiny doc finished.

Cheers