I can't seem to create a layer override to shut off my sun and sky for different layers. What's the correct method for that?
Announcement
Collapse
No announcement yet.
Disable Sunk/Sky on a per render layer basis?
Collapse
X
-
You can override the sun "Enabled" option for the different layers. For the sky, as Dadal pointed out, you can perhaps override the "Override Environment" option. Or, you can put the sky as a texture in a V-Ray dome light and disable that instead.
Best regards,
VladoI only act like I know everything, Rogers.
Comment
-
Actually its not that difficult. Since render globals is just a wrapper for vray, the main vraySettings node can have layer override. You have to just hunt for the params, but here is the mel command:
editRenderLayerAdjustment "vraySettings.cam_envtexGi";
editRenderLayerAdjustment "vraySettings.cam_envtexReflect";
editRenderLayerAdjustment "vraySettings.cam_envtexRefract";
disconnectAttr VRaySky1.outColor vraySettings.cam_envtexGi;
disconnectAttr VRaySky1.outColor vraySettings.cam_envtexReflect;
disconnectAttr VRaySky1.outColor vraySettings.cam_envtexRefract;
editRenderLayerAdjustment "vraySettings.cam_overrideEnvtex";
setAttr "vraySettings.cam_overrideEnvtex" 0;
editRenderLayerAdjustment "VRaySunShape1.enabled";
setAttr "VRaySunShape1.enabled" 0;Dmitry Vinnik
Silhouette Images Inc.
ShowReel:
https://www.youtube.com/watch?v=qxSJlvSwAhA
https://www.linkedin.com/in/dmitry-v...-identity-name
Comment
Comment