Modo Scripts
(401) Transfer/propagate light properties
Posted by on Friday, June 19, 2009 (GST)
mm_TransferLightProperties
 
 
What is it?
 
A script to transfer the properties/edits of one light across many others in one go.
 
 
Installation:
 
Choose 'Run Script' from the 'System' menu (Shift-F5)
 
 
 
 
Navigate to where you've unzipped the zip file and double click on 'install.py'
 
 
 
 
In the next dialog, you need to navigate back to the same directory so that the install script can find the files it needs to install.
 
 
 
 
If the install is successfull, a dialog should pop up.
 
 
 
 
 
Restart modo.
 
 
Usage:
 
Make whatever changes you need to the source light. When you've finished select the source light node, followed by all the lights you want to copy the settings to - The source light must be the first light you select.
 
Then, right click on any of the selected light entries and choose 'transfer Light properties' from the menu
 
 
 
 
 
A form will po up allowing yopu to select which light properties you would like to copy from the source to the destination. You can choose any combination of properties in the list - as many or as few as you want. Only the properties checked will be copied.
 
The script supports copying:

Light and Volumetrics settings from the source Light Node.

Layer, light Material and Volumetrics settings from the source light's Material layer.

Texture layers applied to the source light - when the script is run and if the 'Texture Layers' entry in the form is checked, any existing texture layers in the destination lights will be deleted and the texture layers from the source light will be instanced and copied into the destination. This means you can make any changes you like to the texture layers in the source light, run the script and have them update in the destination lights, avoiding the issues outlined in the above thread.
 
Here's a screen grab of the pop up form and shader tree before the script is run - notice only the source light has texture layers
 
 
 
 
And a shot of the shader tree after the script has run with the instanced texture layers copied to the destination lights:
 
 
 
 
Enjoy :)