several. Best is you would try to debug your script yourself error by error.. As a start: the first error tells you that the 'else' statement is in a wrong place .. and that is because it must follow an if you can write: if ... then ... else ... or you can write: if ... then ( ... ... ... ) else ( ... ... ... ) but you can…
for obj in selection do (( int $.i = $.material.materialList.count; if ($.i) do for mat in $.material.materialList do $.diffuse = color 255 255 255 $.ambient = color 255 255 255else ( $.diffuse = color 255 255 255 $.ambient = color 255 255 255 ) )) Absolute noob here with absolute noob question: Why is this not working?…
There are several errors in your script, but the logic is sound. This should help you out. ( --FUNCTION TO TEST AND UPDATE A PROPERTY fn SetColor mat prop col = ( if isProperty mat prop do ( setProperty mat prop col ) ) --FUNCTION TO CHANGE THE PROPERTY OR RECURSE fn ChangeMaterialColor mats col = ( for mat in mats do ( if…
Here's some comments. [COLOR="Green"]--NOTHING WRONG WITH THIS LINE, EXCEPT IN MAXSCRIPT IF YOU HAVE AN ELSE CLAUSE YOU NEED TO USE "THEN" NOT "DO"[/COLOR]for obj in selection do[COLOR="Green"]--THE BRACKET DOESN'T NEED TO BE DOUBLE UP[/color] (([COLOR="Green"] --YOU DON'T DECLARE VARIABLES IN MAXSCRIPT OR END LINES WITH A…
Hi. Now the script for Vray ( there was another problem: mat 1 = multimaterial mat 2 = Vray2SidedMtl how to change the color in the material 3 ? I understand you don't work with Vray, but can you tell me the basis? I can't build