Nice little solution you’ve got there! I keep geting an error about a controller not being defined after I’ve selected my objects though.
Hey Erilaz…
That’s odd…I’ve tried all sorts of combinations of objects etc and never had that problem.
Could you post more info about your error? And/or…did you get past it? I’d like to fix it
Hi Tyler,
I’m having a problem with your script to!
“unknown proerty controller in undefined”
Maybe you could post a sample scene or some instructions how to use it! I’ve got two splines and an animated box, I’m not really sure what to do.
Don’ think I’m gonig to have time for this one either but keep up the good work everyone1
J.
That’s truly weird!
I tried my script again and still it worked without error!
Maybe the formatting code screwed up with the (code) tags? Did you try running it from the .ms file that I provided?
Btw…although my script sort of stops you from being able to do anything else (and provides error messages telling you why)…this is what you have to do:
-
create 2 splines…with any number of knots (the more the better)
-
create a “zipper” object (a box or something), and animate it over a series of frames
-
Run the script
-
Select the 2 splines as the 2 treads, then the box as the zipper.
-
Press “Zip it up”
Could one of you getting the errors maybe provide their max file so I could check it out?
Hi T,
I’ve tried downloading you script as requested ansd i still get the same error. Attached is a screen grab anda max file.
Josh.
Thanks for the screengrab j_man…I believe I know what the problem is and will post and updated script this afternoon (if I’m right about what’s the matter ;)).
Hooray! Thanks for your max file j_man…I’ve fixed the problem!
Basically, what was happening was there was an error with the index of the vertice master track in my code.
The line that was having the problem included this:
tread1[4][4][track].controller
The weird part is…when I created a spline in my version of max (max 7)…I had no errors because the master track of my vertices was at an index of “4” in the subcontroller.
But…when I loaded up your .max file j_man, there was an “controller undefined” error, because (as I found out later), the master track of your splines’ vertices was 8 (for some reason)…
Anywho…after doing some help-file reading, I discovered that instead of using numbers to define the index of the animation track, you can instead call a variable that will allow max to determine the actual number of the track itself (so it’ll work no matter what the index is…be it 4, or 8, or 1000)
So…those areas of the code now look like this:
tread1[#object__line][#master][track].controller
And…now there is no error Have fun! And thanks for all your help!
Hey Tyler,
Well no errors, but I end up with two no length splines! I’m thinking this must be an issue with Max7.5 and spline vertex animation. I can’t say for sure but that is my guess. what a hassle!
Anyone else having problems?
J.
The last script works fine for me with max 7.5.
Took a while to realise, that the spline need more than two vertices.
Georg
Arg! That’s too weird j_man, as I’ve mentioned before…I’ve yet to have a single error and I’m on max 7. I really don’t understand what’s going on!
Ah well…the challenge is over anyways, hopefully my lightning bolt script will work for you!