I want to make a basic blender animation: When someone triggers a swich I want a light bulb to emit light, but there is no way of doing it with keyframes, because there is no light keyframe.

The triggering is another thing – I know how to make a keyframe on that, but HOW do I make a SWITCHING light bulb.

  • 2
    $\begingroup$ What have you tried so far? Please use the edit link under your question (i.stack.imgur.com/lXFuK.png) and add more information. What render engine are you using? $\endgroup$ – user1853 Oct 9 '17 at 15:09
  • $\begingroup$ You don't make any "triggers", what would be the point really? When watching the resulting animation no one will be able to tell if it was "triggered" or just manually animated to coincide. I mean, you could create drivers or constraints or whatever, but just keyframe both the switch and lamp at the same time, end result is the same. $\endgroup$ – Duarte Farrajota Ramos Oct 9 '17 at 16:06
  • $\begingroup$ Just keyframe the lights intensity: blender.stackexchange.com/questions/30824/… $\endgroup$ – stacker Oct 9 '17 at 19:56
  • 1
    $\begingroup$ Possible duplicate of How to animate light's energy $\endgroup$ – stacker Oct 9 '17 at 20:00

There are several things unclear in the question, but I'll try to give a general answer:

if your light is just a Light object

you can keyframe its emission strength: 0 on the frame just before the switch goes on, your desired emission value on the frame when it is triggered.

To keyframe almost any value button in the Blender Interface, just hover your mouse over it and press I

if your light is a mesh with a Cycles material *,

whose appearance when "off" is described by a single shader (e.g. a Diffuse) or a more complicated node tree:

  1. open the Node editor, add a Mix Shader in the middle of your rightmost connection (the one that enters into "Material Output").

    To the unconnected bottom-left socket of the Mix Shader add an Emission Shader node and give it your desired strength.

  2. you can now keyframe the Fac: value of the Mix Shader: 0 means light off, something around 0.7 and 1 means light on (it depends on whether you want to keep some shading to the light-emitter material).

Alternatively you can use an Add Shader instead of the Mix Shader and keyframe the Emission strength instead of Fac:.

(* depending on how detailed is your light object, this could be the entire lightbulb or just the tungsten wire or whatever the "active" element is.)


Not the answer you're looking for? Browse other questions tagged or ask your own question.