Hi
I wanted to have more control over the lighting inside moi.
After some trial and error, I managed to write this script that I want to share.
It changes the light direction by dragging on the circle.
By default, It works on "Z-up" mode, which means the light is above the model.
"Y-up" option means the light is in front of the model.
The closer the pointer is to the center of the circle, the higher the angle of the light will shine on the model.
Update:
Now it's a dialog box!
Added "Default" button (Toggles default and modified light direction)
Added "Silhouette" button (Toggles silhouette (light on/off))
Instruction:
Copy the "LightShift_Dialog.htm" to your commands folder.
Add a shortcut key and copy this code into it:
code:
script: var size= moi.ui.getUIPanel('moi://ui/SidePane.htm').document.width; moi.ui.createDialog( 'moi://commands/LightShift_Dialog.htm', 'defaultWidth:size, defaultHeight:size' )
|