Announcement

Collapse
No announcement yet.

Disable Sunk/Sky on a per render layer basis?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable Sunk/Sky on a per render layer basis?

    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?

  • #2
    Massive pain in the ass...

    I think u need to disable environment overrides + hide sun/sky/set intensity to 0 and some more....
    CGI - Freelancer - Available for work

    www.dariuszmakowski.com - come and look

    Comment


    • #3
      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,
      Vlado
      I only act like I know everything, Rogers.

      Comment


      • #4
        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

        Working...
        X