HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Exporting MDX error

01-22-2004, 03:25 PM#1
Xeldarith
-- Runtime error: Index should be less than NumNoteTracks, got : 1

I searched around, but I can't seem to find any posts that solve this. One said check for a #dex on IRC, but that just got me lost, so I was wondering if there is any easier ways to solve it.
01-25-2004, 05:46 AM#2
Kain_M
Could someone help this guy?

Really need this model working for our map.
01-25-2004, 12:05 PM#3
MaC-GyVer
You need to Press F11 (hope you have the MDX importer/exporter
and write these comands

--------------------------------------------------------------------------------

notes = NoteTrack "Sequences"

--------------------------------------------------------------------------------



Press enter and you should get some writing, then type the following:



--------------------------------------------------------------------------------

addNoteTrack trackViewNodes notes

--------------------------------------------------------------------------------



Press enter and you should get some writing, this should fix the problem.


|

Dont close the window, just go to the exporter and export your model with the window open and TADA!!
01-25-2004, 07:07 PM#4
Xeldarith
I copied and pasted exactly what your wrote, but this is what I got:

Welcome to MAXScript.
notes = NoteTrack "Sequences"
-- Cannot assign to read-only variable: Notes
addNoteTrack trackViewNodes notes
-- Type error: Function needs a notetrack, got: , got: Notes
-- Error occurred in exportButton.pressed()
-- Frame:
-- nobjs: 0
-- GEOA: #()
-- bytes: undefined
-- ngeoakeys: 0
-- Notes: undefined
-- objSaveFileName: "C:\Documents and Settings\Joshua Torrance\Desktop\Jack-O-Lantern.mdx"
-- mdx: <BinStream:C:\Documents and Settings\Joshua Torrance\Desktop\Jack-O-Lantern.mdx>
-- gbytes: undefined
-- parse: undefined
-- ngeoa: 0
-- cbone: undefined
-- geoInd: #()
-- name: undefined
-- xbytes: undefined
-- ngeos: 0
>> MAXScript Rollout Handler Exception: -- Runtime error: Index should be less than NumNoteTracks, got: 1 <<

Im not sure if something has been typed in wrong, but I will keep tinkering with this untill you reply, or I some how figure it out.
01-27-2004, 12:53 AM#5
Xeldarith
Never mind, I used Dex, and for whatever reason it worked, but if you can fix the problem, it would help me so I don't have to panick if I need a model immediatly again.
01-27-2004, 04:12 AM#6
foolishk
I encountered the same problem your having and the fix of

notes = NoteTrack "Sequences"
addNoteTrack trackViewNodes notes


does NOT work in 3d max 6, notes appears to be a reserved variable now or something... anyway do this and it WILL work:



notess = NoteTrack "Sequences" -enter key-
addNoteTrack trackViewNodes notess -enter key-


The extra s makes it so you wont get the error about a read-only variable.
01-27-2004, 04:41 AM#7
Xeldarith
Thank you so much! I was just about to give up too, it all works now. I can't thank you enough, but if you need something, feel free to ask.