Modo Scripts
Lumigon Creator
Posted by on Saturday, February 23, 2008 (GST)

Lumigon Creator v1.0

 
Last Update: 14/04/08
 
 
Download: Lumigon.zip
 
Zip contains:
lumigon.py - goes in user scripts directory
The following documentation as an HTML file
 
 
What is it?
 
Lumigon Creator adds two entries to the '(new item)' menu of the item list - 'Lumigon' and 'Lumigon NS'. Both entries will add an area light with a 1m x 1m luminous polygon parented to it. By setting a viewport to 'light' and manipulating the parent area light you can easily move around the luminous polygon while being able to see where it is pointing. Additionally, the first time an item of each type is created from the menu, a material will be created and applied to the polygon as follows: Lumigon - Diffuse and Specular set to 0%, Lumiosity set to 3.0 W/srm2 Lumigon NS - Same as above but with shader layer set to Cast Shadows off, Receive Shadows off, Visible to Camera off Subsequent lumigons of each type added to the scene from the menu commands will have their polygon applied to the material of the relevent type.

 

 


Usage:
 
Copy the main script file (lumigon.py) to your user scripts directory.

Open the Form editor in Modo (F3)

Find the entry called 'Context menus' and expand the node bly clicking on the arrow to the left.



Now find the 'Item Menus' node and expand that.



Now find and expand the 'Item Menu:New Item' node.



Click on the '(new control) item at the bottom of that list.



And select 'Add Command' from the pop up menu.



Type '@lumigon.py 0' (without the quotes) into the dialog box.



Enter a name to appear in the menu in the label box.



Right click on the new entry at the bottom of the list under 'Backdrop Item' and select 'Duplicate' from the menu.



Edit the command string for the duplicate entry so that it it reads '@lumigon.py 1' (without the quotes) and give it a name in the label box to destinguish it from the first entry.



All done, the items are now available from the '(new item)' menu in the item list.