//**********EZ Light by Ken B****** 

[IButton,L,"Light Position",


[VarSet, H, [MouseHPos]]
[VarSet, V, [MouseVPos]]

[VarSet,docWidth,DOCUMENT:MODIFIERS:WIDTH]
[VarSet,docHeight,DOCUMENT:MODIFIERS:HEIGHT]

	

[Varset, LV, DOCUMENT:MODIFIERS:HEIGHT/64]
[Varset, LH, DOCUMENT:MODIFIERS:WIDTH/64]

	// keep mouse values within doc values
	[If, [MouseHPos]>docWidth,[VarSet, H, docWidth]]

	[If, [MouseVPos]>docHeight,[VarSet, V, docHeight]]

	[If, [MouseHPos]<0,[VarSet, H, 0]]

	[If, [MouseVPos]<0,[VarSet, V, 0]]
     	// end keep values
[VarSet, LightV, (V/LV)]
[VarSet, LightH, (H/LH)]
		

	
[IClick,LIGHT:LIGHT PLACEMENT,0,0,LightH,LightV],,,'d'

]

//*****Light Intensity
[IButton,L-Inc,"Increase Light Intensity",

[ISet,Light: LIGHT INTENSITY,.12+Light: LIGHT INTENSITY],,,Shift+'d'
]
[IButton,L-Decr,"Decrease Light Intensity",

[ISet,Light: LIGHT INTENSITY,Light: LIGHT INTENSITY-.12],,,Ctrl+'d'
]
//---------------------------------------------------------------

				
Position Mouse in canvas and press "d" for light placement. Don't use "L" button.
Buttons or hot keys (SHIFT+D & Ctrl+D)can be used for light intensity increase or decrease.