The sequencer is beating me up, I can't get it to space out the tracks back to back with a 10 frame buffer. So far all I've managed to pull off is have it adjust all the tracks to the same start frame. Despite my best efforts to reset all the tracks to zero before sequencing when the script is run again, they all keep…
So I've decided to put down the brush for a few weeks and wrap my head around MaxScript. Knowing a few other polycounters have taken this trip I'm wondering if there isn't some good advice that might help make the trip less bumpy. MoP suggested the DVD's from CG Academy since they came as part of the Dom War prize pack,…
naah the whole point of coding is not doing copy&paste work and tedious manual text editing in masses! analyze what exactly you do with the shift, especially the f_check is a bit weird you want every start/end pair after another with a 10 frame break right ? your stxE is only written to once (on start) so it doesn…
<font class="small">Code:</font><hr /><pre> -- a function frequently used fn f_max a b = (if (a > b) then a else b) -- the method returns the "next" upper directory of a path -- so "C:\\gigatexture\\europe\\" will return "C:\\gigatexture\\" -- it will always return a minimum of "C:\\" -- at least should I havent tested the…
It's coming along nicely thanks to CB. I've created a very simple rollout UI, and it sets the active time segment to the track you click on, this will be very handy when it comes time to use it. But I hit a snag, I'm trying to sequence the sound files but I can't figure out how to get a loop going that will find the end…
exactly what rick said - I've made scripts for many many small repetitive tasks at work such as: -batch applying controllers to nodes -automatically setting up materials' map slots -dumping info about max scenes into text files/xml files -automating certain parts of pipeline such as setting skinning parameters and adding…
you're welcome, the weird voodoo is just returning the "greater/maximum" of the two values, its a function as well. maxscript allows "fn" or "function" as keyword. in this case its useful as "pathnames.count-1" might be 0 (if the input path already is "C:\\") so we would return an empty string which isnt good for the…
Hot Buttered Funk on a stick, it works! What this script does: For each sound track loaded it creates a batch render view and sets the start/end frames and output path for each view to that of the track. It is VERY specific to my work flow, but will help anyone having to lip sync and render many audio clips. This is going…
WOW that opened so many doors and is teaching me so much, talk about a quality example, thanks. I'm still going over it and learning but for the most part it runs pretty much like you envisioned it with some minor errors setting up the output path. No doubt the errors are probably coming from something I butchered to make…
It's been a long weekend and I am just now sitting down and going over your post. Best examples yet, I learned and I learned some more. ahh garbage collection, that explains why I would have arrays and values floating around in memory defining things causing problems. So max only holds onto these things while the scope is…