Setting / getting properties using maxscript when some property names are dupes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to work with an undocumented material plugin.
For each material I can use showproperties to list out all the properties.
The problem is that there are 8 repeated sections (for the 8 maps in these custom materials) where the property name is the same.
So when I do showproperties, I see this (for example):
.map : texturemap
.mipLODBias : float
.uvChannel : integer
.numFrames : integer
.map : texturemap
.mipLODBias : float
.uvChannel : integer
.numFrames : integer
.map : texturemap
.mipLODBias : float
.uvChannel : integer
.numFrames : integer
If I grab the material from medit and query one of those values:
mat=meditmaterials[3]
print mat.mipLODBias
Then it only returns the first value of mipLODBias
How do I get / set the other two values that have the same name? I'd thought I might be able to get at them directly by looking in a property array at array items 2,6 and 10 - the three mipLODBias values, but I've been going in circles trying to figure out how to do this.
Any help would be appreciated.
