Move mesh

Prophet

22-09-2008 15:31:23

I'm currently having a little problem with my importer. Since Maxs uses the bottom of boxes as their pivot point, I would like to push each box's mesh/collision mesh ½ the size down/up. How would I do that?
I know I can use meshmagick or the box trick, but as soon as you get more than 5 meshes, that will become boring, so I need to do it in-game.

mcaden

22-09-2008 16:28:22

probably the best method would be to write a command line script (at the command prompt you can make a loop...great for renaming all of a specific file type in a directory or something like adding a suffix to every file) ... I forget the syntax though

Prophet

22-09-2008 19:32:48

You mean like running Meshmagick several times with xalign=center and repeat that for several meshes? First, it will require the artist to use a second program and secondly all has to be named Box01.mesh, Box02.mesh or the folder must not contain any other meshes, not to be aligned.
It's the best option so far, but I would like to have it integrated in the code.
(A second option is to move the pivot-point inside of 3ds Max)

mcaden

23-09-2008 00:20:11

It's been a long time since I've used it, but from the command prompt is something like foreach *.mesh meshmagick.exe ...