ARTillery
01-11-2011, 10:42 AM
hello, this is probably a noob question so here goes.
I'm writing a script that would change the diffuse maps of materials, so I'm checking to see if the material type is standard material so I wrote
if classof (o.material) == standardMaterial() then
the o is for the loop, obviously there's something wrong, the code runs with no errors but it does nothing, I suspect that the condition is not met so I'd like to know how to rectify this.
thanks in advance.
I'm writing a script that would change the diffuse maps of materials, so I'm checking to see if the material type is standard material so I wrote
if classof (o.material) == standardMaterial() then
the o is for the loop, obviously there's something wrong, the code runs with no errors but it does nothing, I suspect that the condition is not met so I'd like to know how to rectify this.
thanks in advance.
