/
Multilight example
Multilight example
This script shows how to use the Multilight API through scripting.
It opens an MXI file, parses all the lights and changes their intensity to 500 Watts
Example
// This script shows how to use the Multilight API through scripting
// It opens an MXI file, parses all the lights and changes their intensity to 500 Watts
Maxwell.openMxi( "C:\multilight_test.mxi" );
var nLights = Multilight.getLightsCount();
for( var i = 0; i < nLights; i++ )
{
if( Multilight.isLightMuted( i ) == false )
{
Multilight.setLightEmissionType( i, 0 ); // Custom emitter
Multilight.setLightLuminanceType( i, 0 ); // Watts
Multilight.setLightIntensity( i, 500 );
}
}
Multilight.refreshAllLights(); // Upload viewers
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Related content
Rhino 6 and newer - Maxwell Lights
Rhino 6 and newer - Maxwell Lights
More like this
Render Options
Render Options
More like this
formZ | Render Options | Image
formZ | Render Options | Image
More like this
Plug-ins
Plug-ins
More like this
Cinema - Material Editor
Cinema - Material Editor
More like this
Rhino 6 and newer - Maxwell Options
Rhino 6 and newer - Maxwell Options
More like this