here is the complete code from the video what I meant was that lowercase "L" in "for i in l to obj.NumVerts do" appears to be undeclared. function exportMesh obj fileName origin:obj = ( local file = createFile fileName, vertStore = #(), numFrames = (animationRange.end - animationRange.start).frame as integer format "%,…
I am following video tutorial on exporting animated mesh from max, but I appear to have a problem that isn't present in the video. Namely i have undefined variable in loop. Since I am new to maxscript I don't know how to fix this without possibly breaking stuff further. jump to 4:48 for the problem I am having…
I doubt the issue comes from the tutorial, could you please paste your code so we can see what's missing? "i" shoudnt be undefined as i == a number ranging from 1 to obj ( which you should have declared above) number of verts do you declare obj when running the function? ig: fn exportmesh $box001 ($box001 = obj) and so…
thank you, i also had to change coordsys variable to local since origin as shown in tutorial isn't valid in max anymore. Is there any difference between local and grid settings for coordinate system? I didn't notice any change in data that got stored.
you misread the tutorial ;) it's suppose to be be for i in 1 to... 1 = one(the number) NOT the letter L so change it in the loop and change thisformat "%, %, %\n" (f.frame as integer) (i - l) dv to:file toformat "%, %, %\n" (f.frame as integer) (i - 1) dv to:file