ColMatrix
04-26-2009, 03:06 PM
Hi
I am in the process of creating a script which returns the ammount of material ID's in a editable_Poly, a friend mentioned I should try to find it for the .mesh which should be available. Currently my script wont work on an editable mesh, I could do an 'if expression' to check if the selection is one or the other then execute the relevant script - this i may do as I am new and would be worthwhile...
But currently I am going to learn more about this '.mesh/trimesh' and if i can access material ID's at this level I will not have to generate 2 seperate bits of code and to my understanding should be more...universal i think is the best way to put it.
I have looked in the Maxscript help (.mesh, trimesh, meshops) and I have not found anything.
Can anyone offer any guidance/recommendations or whether this cant be done?
Thanks for your help.
I am in the process of creating a script which returns the ammount of material ID's in a editable_Poly, a friend mentioned I should try to find it for the .mesh which should be available. Currently my script wont work on an editable mesh, I could do an 'if expression' to check if the selection is one or the other then execute the relevant script - this i may do as I am new and would be worthwhile...
But currently I am going to learn more about this '.mesh/trimesh' and if i can access material ID's at this level I will not have to generate 2 seperate bits of code and to my understanding should be more...universal i think is the best way to put it.
I have looked in the Maxscript help (.mesh, trimesh, meshops) and I have not found anything.
Can anyone offer any guidance/recommendations or whether this cant be done?
Thanks for your help.
