Hi guys!
Let’s say I’ve created a Box, created a Standard material, modified the diffuse rgb value and assigned that material to the box, ie:
Now, I’m trying to retrieve all the parameters from this material using maxplus with something like this:
n = MaxPlus.SelectionManager.GetNodes()[0]
mat = n.GetMaterial()
for p in mat.ParameterBlock:
print(p.Name, p.Value)
which gives me (sorted by name):
(u'adTextureLock', True)
(u'ambientMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F780> >)
(u'ambientMapAmount', 100.0)
(u'ambientMapEnable', False)
(u'applyReflectionDimming', False)
(u'bumpMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049FC60> >)
(u'bumpMapAmount', 30.000001907348633)
(u'bumpMapEnable', False)
(u'diffuseMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F660> >)
(u'diffuseMapAmount', 100.0)
(u'diffuseMapEnable', False)
(u'dimLevel', 0.0)
(u'displacementMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F570> >)
(u'displacementMapAmount', 100.0)
(u'displacementMapEnable', False)
(u'faceMap', False)
(u'faceted', False)
(u'filterColor', <MaxPlus.Color; proxy of <Swig Object of type 'Autodesk::Max::Color *' at 0x000000005049F780> >)
(u'filterMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F660> >)
(u'filterMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049FC60> >)
(u'filterMapAmount', 100.0)
(u'filterMapEnable', False)
(u'glossinessMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F780> >)
(u'glossinessMapAmount', 100.0)
(u'glossinessMapEnable', False)
(u'ior', 1.5)
(u'mapAmounts', <MaxPlus.FloatList; proxy of <Swig Object of type 'Autodesk::Max::FloatList *' at 0x000000005049F660> >)
(u'mapEnables', <MaxPlus.BoolList; proxy of <Swig Object of type 'Autodesk::Max::PrimitiveList< bool > *' at 0x000000005049FC60> >)
(u'maps', <MaxPlus.TexmapList; proxy of <Swig Object of type 'Autodesk::Max::PointerList< Autodesk::Max::Texmap,::Texmap > *' at 0x000000005049F570> >)
(u'opacity', 100.0)
(u'opacityFallOff', 0.0)
(u'opacityFallOffType', 0)
(u'opacityMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F570> >)
(u'opacityMapAmount', 100.0)
(u'opacityMapEnable', False)
(u'opacityType', 0)
(u'reflectionLevel', 3.0)
(u'reflectionMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F660> >)
(u'reflectionMapAmount', 100.0)
(u'reflectionMapEnable', False)
(u'refractionMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F780> >)
(u'refractionMapAmount', 100.0)
(u'refractionMapEnable', False)
(u'sampler', 3)
(u'samplerAdaptOn', True)
(u'samplerAdaptThreshold', 0.10000000149011612)
(u'samplerAdvancedOptions', True)
(u'samplerByName', u'Max 2.5 Star')
(u'samplerEnable', False)
(u'samplerQuality', 0.5)
(u'samplerUseGlobal', True)
(u'selfIllumMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F570> >)
(u'selfIllumMapAmount', 100.0)
(u'selfIllumMapEnable', False)
(u'shaderByName', u'Blinn')
(u'shaderType', 1)
(u'specularLevelMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F660> >)
(u'specularLevelMapAmount', 100.0)
(u'specularLevelMapEnable', False)
(u'specularMap', <MaxPlus.Texmap; proxy of <Swig Object of type 'Autodesk::Max::Texmap *' at 0x000000005049F780> >)
(u'specularMapAmount', 100.0)
(u'specularMapEnable', False)
(u'subSampleTextureOn', True)
(u'twoSided', False)
(u'UserParam0', 0.0)
(u'UserParam1', 0.0)
(u'wire', False)
(u'wireSize', 1.0)
(u'wireUnits', 0)
My question is, why are not the RGB values listed there (ie: ambient, diffuse, specular, …)? For instance, how would I retrieve the diffuse value I’ve set to red using maxplus?
Thanks in advance 

