Announcement

Collapse
No announcement yet.

Little contribution: Script for scale intensity of selected Vraylights

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Little contribution: Script for scale intensity of selected Vraylights

    A little little contribution for vray users.

    Sometimes I reach a good lighting balance but i need to scale all lights(or someone) to reach the desired result. For this a wrote this simple script.
    Probably could be wrote better but i'm a noob in Maxscript knowledge.


    Code:
    macroScript Scale_Selected_VrayLights_Multiplier
    	category:"Bardo's Scripts"
    	toolTip:""
    (
    	rollout rename_rollout "Multiply selected Vraylights Multiplier"
    
    	(
    
    		--edittext scale_multiplier "Multiplier:" 
    		spinner scale_multiplier "Multiplier:" range:[0,1000000,0] type:#float scale:0.1
    		button rename_them "Multiply IT!!" 
    
    		on rename_them pressed do
    
    		(
    				if selection.count > 0 then
    				
    				--value=(scale_multiplier)
    				--value as Number 
    				for i in selection do i.multiplier = i.multiplier*scale_multiplier.value
    
    		)--end on
    
    		)--end rollout
    
    	createDialog rename_rollout 260 50
    
    	---if selection.count > 0 then 
    		--	(
    		--	for i in selection do $*.multiplier=$*.multiplier*2
    		--				) else messagebox ("Any lights selected")
    )
Working...
X