Message 1 of 3
getVert -- runtime error
Not applicable
02-03-2012
12:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a problem with this practical example "How To ... Output Geometry Data To Text File - Part One"
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-38562330-1435-4112-9265-DE...
I draw a simple plane into the scene and while it is selected I click on my scripts button
this is very simplified part of the whole script I have but it suffices the purpose. Anyway when my command panel is on anything else than Modifiers tab this script throws an error:
maxscript rollout handler exception
-- runtime error: Mesh vertex index out of range: 8
If before running this script I switch to Modifiers list and then I run it it works fine. Why this is happening?
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-38562330-1435-4112-9265-DE...
I draw a simple plane into the scene and while it is selected I click on my scripts button
mesh = snapshotAsMesh selection
out_name = ((GetDir #export)+"/testmesh.dat")
out_file = createfile out_name
num_verts = tmesh.numverts
for v = 1 to num_verts do
(
vert = getVert tmesh v
format "%," vert to:out_file
)
close out_file
this is very simplified part of the whole script I have but it suffices the purpose. Anyway when my command panel is on anything else than Modifiers tab this script throws an error:
maxscript rollout handler exception
-- runtime error: Mesh vertex index out of range: 8
If before running this script I switch to Modifiers list and then I run it it works fine. Why this is happening?