LightTransfer v1.0 (by @arthur)

Welcome to the documentation for LightTransfer, a tool specifically designed for the lighting department.

LightTransfer was developed to optimize the time spent on lighting adjustments in Nuke and to facilitate the update of these modifications in Maya.

This automated process ensures perfect synchronization between the two software applications while enhancing the efficiency and visual consistency of your projects.

LightTransfer_v01.zip file containing the necessary resources:

Download

Key Features

Retouching in Nuke

LightTransfer loads lighting information from a rendered image into Nuke. Users can individually modify lights, adjusting exposure and colors. Once the modifications are complete, the tool exports a result containing all the changes made.

Updating in Maya

The exported result from Nuke is then imported into Maya.

LightTransfer automatically updates all exposure and color information of lights in Maya, ensuring perfect synchronization between the two applications.

With LightTransfer, the lighting department can reduce production timelines while improving visual consistency across all projects.

Explore this clear documentation to discover how to make the most of this tool and optimize your workflows.

Installation Guide:

This guide will help you through the process of transferring and synchronizing light settings between Maya and Nuke. Follow each step to ensure a smooth integration and consistent results.

User Guide: Light Transfer between Maya and Nuke

This guide will help you through the process of transferring and synchronizing light settings between Maya and Nuke. Follow each step to ensure a smooth integration and consistent results.

  1. Creating LightGroups in Maya

    Open your scene in Maya. Create a LightGroup for each light in the scene:

    • Select a light.
    • Go to the light attributes and create a LightGroup named after the light.
    • Repeat for each light.
  2.  
  3. Adding AOVs in Maya

    Add a "Beauty" AOV for each light:

    • Open the Render Settings.
    • Go to the AOVs section (Arbitrary Output Variables).
    • Add a "Beauty" AOV for each light, using the light’s name.
  4.  
  5. Starting the IPR and Exporting the Image

    Start an IPR (Interactive Photorealistic Render):

    • Ensure all AOVs are configured and visible.
    • Export the image in EXR format:
    • Select OpenEXR with the Half Float option.
  6.  
  7. Project Setup in Nuke

    Set up your project in Nuke:

    • Set the colorspace to ACES or your pipeline’s required colorspace.
    • Set the project format according to the EXR image resolution.
  8.  
  9. Reading the Image and Creating the "LightTransfer" Node

    Read the EXR image in Nuke.

    Create a "LightTransfer" node:

    • Connect the EXR image to this node.
  10.  
  11. Verifying Lights with LayerContactSheet

    Check if all lights are present:

    • Use the LayerContactSheet node to display the different layers.
    • Each light should appear in the format `beauty_lightName`.
  12.  
  13. Adjusting Lights

    Click "Rebuild" in the LightTransfer node:

    • Sliders for exposure and color will appear for each light.
    • Hide certain lights to fine-tune your adjustments.
  14.  
  15. Real-Time Retakes and Adjustments

    Make your retakes and adjustments:

    • Use the exposure and color sliders to adjust the lights in real-time.
  16.  
  17. Exporting Light Values

    Click "Export" in the LightTransfer node:

    • The light values will be exported to a .json file.
  18.  
  19. Updating Lights in Maya

    Return to Maya.

    Run the "LightTransfer_Update" script:

    • Provide the .json file generated in Nuke.
    • The light values in Renderman for Maya will be updated to match those in Nuke.

Your lights in Maya should now match exactly what was adjusted in Nuke, ensuring a consistent and accurate final render.

Nuke

  1. Open Your .nuke Folder
  2. Create a Folder Named LightTransfer and move the file LightTransfer.nk into this subfolder
  3. Open the menu.py file located in the .nuke directory.

    Add the following code:

    # LightTransfer
    def add_light_transfer_node():
        user_home = os.path.expanduser("~")
        node_path = os.path.join(user_home, ".nuke", "LightTransfer", "LightTransfer.nk")
        nuke.loadToolset(node_path)
    
    nuke.menu('Nodes').addCommand('LightTransfer', add_light_transfer_node, 'Ctrl+Shift+L')
  4. Restart Nuke

Maya

  1. Open the desired shelf
  2. Open the Script Editor
  3. Load the script in maya

    You can find the LightTransfer_Update_v1.py in LightTransfer_v01\scripts\maya

  4. Ctrl + A and save the script to the shelf