Jump to content

Recommended Posts

Posted (edited)

I've been getting tired of the very tedious task of finding and then entering large amounts of Min/Max Extents variables in the data.ini's I've been working on (hate repetition :yes: )

So I started playing around with /learning Maxscript to automate it somewhat

 

This script outputs to a text file from MAX the min/maxExtentPosition for all of a models nodes

The min / max extents are calculated on the bounding box of the node so YMMV if you have very irregular nodes (some hand tuning)

Obviously this is only of use to people with the max file models…

 

The output looks like this

 

------------------------------
 Fuselage
 MinExtentPosition=-0.42,-1.127,-0.86
 MaxExtentPosition=0.42,2.63,0.778

 Cockpit
 MinExtentPosition=-0.42,0.38,-0.727
 MaxExtentPosition=0.42,2.484,0.173

 Radiator
 MinExtentPosition=-0.506,-0.535,-0.063
 MaxExtentPosition=0.506,0.495,0.935

 ---------etc etc

 

get it in the downloads/utilities section when it gets approved

Please feel free to offer improvements

 

See readme for install /use

Edited by p10ppy
Posted

Very nice tool indeed !!!!

 

It makes the generation of the Min/Max points a snap.

 

Good work :)

Posted

Glad it was useful

 

@ foxmonter

CollisionPoint's?

I couldnt think of a rational way of doing them

I could supply the four corner points of a nodes bounding box

but CollisionPoint's often are not really in those positions (i supose the same argument could be made for some min/max extents) :blush:

 

but if that would be useful or you can think of a better parameter to use from the model let me know :)

Posted

I only make models in 3d... programing scripts for max it's not my field...

 

There is a tool, for reducing the number of polys, optimize...

Maybe if a poly is reduced, maybe... you can export position of the verts, or something like that...

The idea is to have the primary outer verts only and export that.?

 

It would be very usefull for ini files.

 

But this script minmaxexport is excellent, I tested in my latest model and is work great!!!!!! reducing a lot of work.

 

Cheers budy :clapping::clapping::clapping:

Guest Charles
Posted

Thanks a lot for this - it will save a great deal of trial and error, and make for much more precise hit box coordinates.

A very useful tool.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..