Announcement

Collapse
No announcement yet.

VrayAmbientLight animated intensity

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

  • VrayAmbientLight animated intensity

    How do i get the intensity parameter into the curve editor?
    Thanks for help!

    Axel

  • #2
    It doesn't look like the intensity multiplier is animatable or at least not directly.

    However it is usually possible to add an expression controller to another parameter that is animatable and use it to control the non animatable parameter. In your case you could use the mental ray 'GI Photons' parameter which can be animated to control the intensity multiplier:
    Code:
    (
    	theLight = getNodeByName "VRayAmbientLight001"
    	
    	intensityCtrl = float_script()
    	intensityCtrl.addNode "theLight" theLight
    	intensityCtrl.SetExpression "theLight.intensity=theLight.mrII_GlobalGIPhotonMultiplier\n100"
    	
    	theLight.light_map_multiplier.controller = intensityCtrl
    )
    If you run the script it will connect the mr GI photons to the intensity multiplier of your VRayAmbientLight.
    Dan Brew

    Comment


    • #3
      Thank you Daniel!

      I will try your solution. In the meantime i used the lightmap with a vraycolor map and animate the light_map_multiplier.


      Cheers!

      Comment


      • #4
        Originally posted by Bechstein View Post
        I will try your solution. In the meantime i used the lightmap with a vraycolor map and animate the light_map_multiplier.
        Hi Axel,

        If your way is working then I'd stick with it, it's probably an easier solution in this case anyway. However if you have a problem like this again and there isn't a convenient workaround then try an expression controller.
        Dan Brew

        Comment

        Working...
        X