Hello everyone.
I am using python/maxscript to get material information from max. I am able to get basically everything I need using the ParameterBlock.
I am running into one snag though and that is dealing with texmaps. I can get the names and the memory reference as such.
My problem is I get either a name, value or the memory reference like this:
MaxPlus.Parameter; proxy of <Swig Object of type 'Autodesk::Max::Parameter *' at 0x0000000094BEB1B0> > texmap_diffuse 15 Animatable(Falloff)
How do I go to this material and get it's attributes and parameters. I would assume that I could access it with an ID of the material or if I could pull the exact name or the map/texture. I did not find a way to get the proper name.
Ex: I have a chrome material with a falloff in the diffuse. I can get every parameter of chrome, but now I want to access that falloff material in the diffuse texmap slot and then get all it it's parameters as well.
I would like to this this for bitmaps, textures and basically anything that would go into a map slot within a vray mat.
Thanks in advance for any guidance with this.
I am using python/maxscript to get material information from max. I am able to get basically everything I need using the ParameterBlock.
Code:
for p in obj.ParameterBlock.Parameters: print p.Name, p.Value
My problem is I get either a name, value or the memory reference like this:
MaxPlus.Parameter; proxy of <Swig Object of type 'Autodesk::Max::Parameter *' at 0x0000000094BEB1B0> > texmap_diffuse 15 Animatable(Falloff)
How do I go to this material and get it's attributes and parameters. I would assume that I could access it with an ID of the material or if I could pull the exact name or the map/texture. I did not find a way to get the proper name.
Ex: I have a chrome material with a falloff in the diffuse. I can get every parameter of chrome, but now I want to access that falloff material in the diffuse texmap slot and then get all it it's parameters as well.
I would like to this this for bitmaps, textures and basically anything that would go into a map slot within a vray mat.
Thanks in advance for any guidance with this.
Comment