Script problem
A simple script to rattle through the material editor and copy the diffuse map to the bump map. Script with errors below. Any help would be appreciated.
for i = 1 to 24 do (
for t = 1 to meditMaterials[i].materialList.count do (
meditMaterials[i].materialList[t].bumpMap = meditMaterials[i].materialList[t].diffuseMap
)
)
-- Syntax error: at ), expected
-- In line: )
Comments
Cause the listener
Cause the listener interprets your code each time you hit return.
Your code works for me, I
Your code works for me, I only added a check if the material is a multimaterial.
Note that you should send your code within code-tags for better formatting (look at the lower end of http://scriptspot.com/filter/tips).
Yoodaman! How come it throws
Yoodaman! How come it throws errors in the listner but not when you run the script through "Run Script"?