VeddyCent
07-01-2011, 11:53 AM
Hi all,
I'm stuck with some script and any help would be much appreciated.
I have a maxscript that loops though the SceneMaterials and searches for a selection of textures, which names are obtained from a text file. When located a texture is placed into its opacity map.
Now the problem I have is when I get to a multi/sub object in the material list I get this error
Unknown property: "diffuseMap" in #Multi/Sub-Object:02 - Default(Standard:Material #46, Standard:Material #38, Standard:Material #39, Standard:Material #40, Standard:Material #41, Standard:Material #42)
So I need a way to test whether the current material is a multi/sub object.
Something like:
if( SceneMaterials[i] == multi/sub) then
Thanks
I'm stuck with some script and any help would be much appreciated.
I have a maxscript that loops though the SceneMaterials and searches for a selection of textures, which names are obtained from a text file. When located a texture is placed into its opacity map.
Now the problem I have is when I get to a multi/sub object in the material list I get this error
Unknown property: "diffuseMap" in #Multi/Sub-Object:02 - Default(Standard:Material #46, Standard:Material #38, Standard:Material #39, Standard:Material #40, Standard:Material #41, Standard:Material #42)
So I need a way to test whether the current material is a multi/sub object.
Something like:
if( SceneMaterials[i] == multi/sub) then
Thanks
