OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Maya: Disable rendering of all lights for render instances submitted through Deadline.

Open Allan-I opened this issue 3 years ago • 5 comments

Brief description

Fixes #2241 by adding flag "RenderSetupIncludeLights" to deadline job information.

Description

Disables rendering all lights in the scene to conform with render layers, such that all the lights in the scene aren't automatically rendered

Additional info

Previously, jobs submitted through deadline would render all the lights because of the lack of the RenderSetupIncludeLights flag. This PR fixes the issue by adding that flag to the project settings to be a global variable, that can be overridden through the created render instance in the Extra Attributes tab in the attribute editor in Maya.

The old PR (found here: https://github.com/pypeclub/OpenPype/pull/3038) was discarded in favor of this one.

Testing notes:

  1. Create multiple lights in the scene.
  2. Create geometry.
  3. Create render instance selecting only one light and the geometry.
  4. Create another render layer selecting another light and the geometry through the render setup panel in Maya (Windows->Rendering Editors->Render Setup).
  5. Make sure the layers each contain collection that includes the geometry and the intended light, remove any wildcards (*) that exist.
  6. Publish.

The jobs submitted should have the flag disabled as False in the Job Properties.

Allan-I avatar Aug 14 '22 23:08 Allan-I

You got it, Murphy, done!

ghost avatar Aug 16 '22 19:08 ghost

Thank you Roy!

ghost avatar Aug 17 '22 08:08 ghost

do I need to redo the test?

m-u-r-p-h-y avatar Aug 17 '22 08:08 m-u-r-p-h-y

do I need to redo the test?

I don't think so!

ghost avatar Aug 17 '22 08:08 ghost