PDA

View Full Version : photons checkbox problem


brogh
11-29-2005, 07:51 PM
Maybe some of you encountered a problem, as I do, in setting the number of photons in a light, sometimes the attribute get's "hidden-locked".
Even deactivating and reactivating photons in the renderglobals wont unlock it.

Here is a workaruond :

in the command line enter :

settAttr "lightshapename.globalIllPhotons" Photons number ;


for example : for my spotlight


setAttr "spotLightShape1.globIllPhotons" 150000;


Don't forget to set the ; at the end of the command ...

Yes maybe it's a little bit tweaky... but it works.




Another workaround found out from dagon1978 is this one:



- Create a new scene

- Create a new light

- activate gi

- save the scene

- import this scene in the file that has the textbox locked

- now it should be active

- throw away the imported light



Maybe someone knows another workaround for this ?


cheers

HowardB
11-30-2005, 12:09 AM
I’ve had that happen to me too.. when I moved a scene over from maya 6 to 7. I just fixed it by importing into a new scene. It’s only happened to me once so I don’t think it’s a big deal. :)

brogh
11-30-2005, 12:19 AM
hehe no not big deal ... but if you import it . you loose al your mray settings that you've set up for that specific scene.

PS howard ( it happened to me and dagon on your interior scene, but in any case thanks for this one )


Cheers

HowardB
11-30-2005, 02:39 AM
hehe. Yeah it’s the same scene that happened to me too! I’ll see about fixing. For the mental ray settings I think you could always save them as a preset and then load them back into the imported scene.

Greken
01-21-2006, 12:21 PM
Damn, that thing just happened to me this day and I sat like a hour to try figure out what settings was wrong - since it worked perfectly yesterday. I don't know why this happened, but the solution is rather easy. Remember folks, the beauty of Maya is that mostly everything is made up of MEL-commands!
So the only thing I needed to know was what that control was called. I turned on Echo All Commands in the Script Editor, and switched the Emit Photon of a light on and off (in a new scene, with Global Illumination turned on). That gave me four MEL-commands of controls turned on and off, and a wild guess was that probably the last one must be the control I was searching for. And it all works now, and of what it seemse, you only need to select a light and run this code:

attrFieldSliderGrp -e -en true attrFieldSliderGrp38;


Edit: As I began investigate it more, it seemse that Maya deactivate the box once the light is deselected :( So it's not a solid solution


Regards,
Pedalen

CGTalk Moderation
01-21-2006, 12:21 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.