Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[Help] MaxScript

Read or post any tutorial related to file format analysis for modding purposes.
Post Reply
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

[Help] MaxScript

Post by zaramot »

Hello everyone!
I need help with maxscript, how could I implement several loops in my script? I could successfully import files with one mesh, but how could I parse file with couple of meshes through maxscript?
Making model-import scripts, PM
User avatar
TheDude
mega-veteran
mega-veteran
Posts: 239
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 29 times
Been thanked: 59 times
Contact:

Re: [Help] MaxScript

Post by TheDude »

You would use a "for" or "while" loop, but of course you'll need to understand the basic structure of your file.
With a while loop you'll need to keep it check with a loop condition that will return false at some point or else you'll get stuck in an infinite loop. There's a bunch of Maxscripts on this site you can look at as examples. One example is chrrox's Star Ocean 4 importer: viewtopic.php?f=16&t=6860&start=15

Also, if you haven't seen them, these are some good videos:http://vimeo.com/album/1514565
"Loops and Loop Control" is on the second page.

Actually, even better. Check out mariokart64n's videos. viewtopic.php?f=16&t=5644
That's how I got started. 8)
Post Reply