Message 1 of 5
material id question

Not applicable
04-06-2008
10:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi
i am doing my first steps to a maxscript that exports a scene to my own format.
i am currently trying to export the faces of a mesh.
when i assign 2 or more materials to a mesh the material ids are just fine
but when i only have one material assigned to the object i get a different material id per face. (ids seem to not make any sense)..
here is what i do:
can anyone tell me if i oversee something `?
thanks in advance
i am doing my first steps to a maxscript that exports a scene to my own format.
i am currently trying to export the faces of a mesh.
when i assign 2 or more materials to a mesh the material ids are just fine
but when i only have one material assigned to the object i get a different material id per face. (ids seem to not make any sense)..
here is what i do:
for i = 1 to mesh.numfaces do
(
face = getFace mesh i
matid = getFaceMatId mesh i
print matid
print face
)
can anyone tell me if i oversee something `?
thanks in advance