ColMatrix
04-20-2009, 12:06 PM
Hi
This is my frist post, and I am completely new to MaxScript. I watched a tutorials and started to play on my own whilst viewing further DVD's.
I am wanting to return how many MTL ID's are used on a selected Editable Poly object. So if the model has upto 5 MTL ID's then the result will be 5.
I 'think' this is what has to be done:
Search each face in the editable poly
Put the result into an array.
Add any new MTL ID#'s currently not in the array.
If a returned MTL ID # is already in the Array move onto the next face.
After each face has been scanned, count how many entries are in the array (myArray[].count?)
I would appreciated some help in this I understand this is so simple.
Many thanks
Col
This is my frist post, and I am completely new to MaxScript. I watched a tutorials and started to play on my own whilst viewing further DVD's.
I am wanting to return how many MTL ID's are used on a selected Editable Poly object. So if the model has upto 5 MTL ID's then the result will be 5.
I 'think' this is what has to be done:
Search each face in the editable poly
Put the result into an array.
Add any new MTL ID#'s currently not in the array.
If a returned MTL ID # is already in the Array move onto the next face.
After each face has been scanned, count how many entries are in the array (myArray[].count?)
I would appreciated some help in this I understand this is so simple.
Many thanks
Col
