View Full Version : set photonIntensity mel script ?

10 October 2010, 01:25 PM
hi ,

im trying to write a script to set the number of photons a light emits

for($thislght in $allmylights){

string $lightatstringv = $thislght +".photonIntensity" ;
setAttr $lightatstringv 2;


however it sets it to the desired intensity and then immediately changes it back,

other light attributes can be set this way, so why do phontons no worky ?


10 October 2010, 01:44 PM
did you try that after setAttr
miLightUpdatePhotonEnergy spotLightShape1;

10 October 2010, 02:49 PM
thats done it. thanks dude.


CGTalk Moderation
10 October 2010, 02:49 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.