|
I was meaning the final solution. so, if you want the default to be a lambert for example:
[FONT=arial][SIZE=2]goto plugin manager, then file, then new, then Event.
then type in a plugin name, eg changeSceneMat, use the same for the next name.
Change the coding tab to JScript.
Change to the tab to event definition, the check “siOnEndNewSceneEvent”,
scroll down to the bottom and click “generate code”
Lastly, look in your script editor, and where it says
‘ TODO: Put your code here.
put beneath that on a line on its own ..................drum roll......................
SelectObj("Sources.Materials.DefaultLib.Scene_Material", null, null);
CopyPaste(null, “Shaders\\Material\\Lambert.Preset”, “TransientObjectContainer”, null);
SIConnectShaderToCnxPoint("TransientObjectContainer.Lambert”,"Sources.Materials.DefaultLib.Scene_Material.surface",false);
SIConnectShaderToCnxPoint("Sources.Materials.DefaultLib.Scene_Material.Lambert”,"Sources.Materials.DefaultLib.Scene_Material.shadow",false);
SIConnectShaderToCnxPoint("Sources.Materials.DefaultLib.Scene_Material.Lambert”,"Sources.Materials.DefaultLib.Scene_Material.Photon",false);
[/SIZE][/FONT]Then save (in script editor)
So whenever you make a new scene, it will run that script.
|