- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to figure out a way to cycle through an Edit Poly or Editable Poly, where each face gets assigned a Material ID that is equal to the face number. So face 1 would = Mat ID 1, face 2 = Mat ID 2, face 3 = Mat ID 3, and so on.
So I tried chatGPT to get started since I really don't know that much about maxscript and of course that maxscript fails. This is what it told me.
--get the selected object
obj = selection[1]
--cycle through each face of the object
for f = 1 to obj.numfaces do
(
--get the current FaceSelection
face = getFace obj f
--assign a material ID to the face that is the same as the face IDataChannelEngineClass
setFaceMatID obj f f
)
It errors at line 8 (face = getFace obj f). Is this even close to a working script?
Solved! Go to Solution.