Sign in to follow this  

MaxScript: Getting the diffuse texture of each face

This topic is 3594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

-- Faces
if Mesh.NumFaces > 0 then
(
    for i = 1 to Mesh.numFaces do
    (
	verts  = GetFace       Mesh i
	tvert  = GetTVFace     Mesh i
	normal = GetFaceNormal Mesh i
				
	append FacesX (verts.x as integer-1) 
	append FacesY (verts.y as integer-1) 
	append FacesZ (verts.z as integer-1) 
	append FacesNX (normal.x as Float)
	append FacesNY (normal.y as Float) 
	append FacesNZ (normal.z as Float)
	append FacesTX (tvert.x as integer-1) 
	append FacesTY (tvert.y as integer-1) 
	append FacesTZ (tvert.z as integer-1)
    )
)

Thers my code for getting the vertices, texture vertices and normals but now how would i get the diffuse texture name for each face? Thanks

Share this post


Link to post
Share on other sites

This topic is 3594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this