1/7 Updated to handle export of used shaders in 1 click
12/1 Updated to handle namespaces.
This is useful if you use the script to reference already shaded files so you can apply lambert1 in the referenced scenes and dont get referenced shaders. This way you dont have to re-apply shaders again manually in the master file. Create sets in file to reference apply lambert1 to all geometry, export shaders and delete them from the scene. Import shaders to master scene reference scene file. Use script with "ignore namespaces" checked to reaply shaders in master scene to referenced geometry.
Features:
Tool that lets you store your
shading information (button "Re/write shading information")
for a scene by creating object
sets (on a per face base) and adding tags to shaders.
This lets you restore your stored beauty shading in 1 click (button "Re-apply beauty
shading").
Useful if you you want to temporarily apply (i.e. for ligthing or diangnostic purpose ) different shaders to the scene or define a "default shading" for the scene.
"Assign lambert1" assigns the default shader.
"Assign grey
lambert" does just assign a new grey lambert shader.
If you select the
checkbox it works on selected objects only.
Note that you have to
rebuild sets to save changes in shader assignment.
Install: Put
ks_rememberShading.mel in you script directory.
Start the GUI by
typing "ks_rememberShading" in the script editor.
If you use this for a project please drop me a line.