8/15/2020
New Update
https://united3dartists.com/forum/viewt ... 259#p52259
Vray Material Editor Preview sphere
RMB - Reset Default material
Loads the Default.RsLWm included in the Update from the Vray Materials library
.
When switching Material Editors RMB click the Vray Material Preview sphere or Load/Inspect a Vray Material
.
Update
Add right click commands to the Material Preview, Color, Reflectance, Transparency, and Displacement
Code: Select all
//Material Preview
//Default.RsLWm is required
D3DView.DropObject(System.GetMainDir() + '\\RS Main Libraries\\Vray Materials\\Default.RsLWm', '/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2/Background', 0.000000, 0.000000, 0.000000);
//Color
D3DView.DropObject(System.GetMainDir() + '\\RS Main Libraries\\Vray Shaders - Color\\Plain Color.RsCSh', '/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2/Background', 0.000000, 0.000000, 0.000000);
//Reflectance
//Reflection.RsCSh included in the tS7.61B8StdVray.2 Update
D3DView.DropObject(System.GetMainDir() + '\\RS Main Libraries\\Vray Shaders - Reflectance\\Reflection.RsCSh', '/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2/Background', 0.000000, 0.000000, 0.000000);
//Transparency
D3DView.DropObject(System.GetMainDir() + '\\RS Main Libraries\\Vray Shaders - Transparency\\None Transparency.RsCSh', '/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2/Background', 0.000000, 0.000000, 0.000000);
//Displacement
D3DView.DropObject(System.GetMainDir() + '\\RS Main Libraries\\Vray Shaders - Displacement\\None Displacement.RsCSh', '/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2/Background', 0.000000, 0.000000, 0.000000);
//Refresh Material Editor
MeshModifiers.OpenMaterialEditor();