How to switch all lights on/off at once in Cycles?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
3
down vote

favorite
1












In cycles, lights intensity can be modulated by varying their Color values.



enter image description here



Is there a way to do this for multiple lights at once without using individual keyframes (keying a single object is ok). My need is only to have two states (black, white) if this is more simple to obtain.







share|improve this question


























    up vote
    3
    down vote

    favorite
    1












    In cycles, lights intensity can be modulated by varying their Color values.



    enter image description here



    Is there a way to do this for multiple lights at once without using individual keyframes (keying a single object is ok). My need is only to have two states (black, white) if this is more simple to obtain.







    share|improve this question






















      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      In cycles, lights intensity can be modulated by varying their Color values.



      enter image description here



      Is there a way to do this for multiple lights at once without using individual keyframes (keying a single object is ok). My need is only to have two states (black, white) if this is more simple to obtain.







      share|improve this question












      In cycles, lights intensity can be modulated by varying their Color values.



      enter image description here



      Is there a way to do this for multiple lights at once without using individual keyframes (keying a single object is ok). My need is only to have two states (black, white) if this is more simple to obtain.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 30 at 9:21









      mins

      4141417




      4141417




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          You could just use instances. (Copying with Alt + D)
          Or, after the fact, assign the same Data Block to every light here:



          lights



          Alternative with Drivers:



          Add a driver like this to the Strength of every lamp. That way you can maintain more control over individual lamps.



          driver



          This uses the zLocation of an Empty and multiplies it with the Strength. You would simply use the same Empty for all Lamps. That way you can control them all at once.



          Update for Color



          Here's an example to control the color in a similar way.



          This is the node setup for the Lamp.



          nodes



          Then add the following drivers accordingly.



          huesatval



          This is relatively intuitive to use.






          share|improve this answer






















          • Cool! Glad to hear! Mark as answered, if this is the solution you needed.
            – michaelh
            Aug 30 at 19:32










          • Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
            – mins
            Aug 31 at 6:48










          • Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
            – michaelh
            Aug 31 at 9:18










          • Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
            – mins
            Sep 2 at 0:34










          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "502"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fblender.stackexchange.com%2fquestions%2f117241%2fhow-to-switch-all-lights-on-off-at-once-in-cycles%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          You could just use instances. (Copying with Alt + D)
          Or, after the fact, assign the same Data Block to every light here:



          lights



          Alternative with Drivers:



          Add a driver like this to the Strength of every lamp. That way you can maintain more control over individual lamps.



          driver



          This uses the zLocation of an Empty and multiplies it with the Strength. You would simply use the same Empty for all Lamps. That way you can control them all at once.



          Update for Color



          Here's an example to control the color in a similar way.



          This is the node setup for the Lamp.



          nodes



          Then add the following drivers accordingly.



          huesatval



          This is relatively intuitive to use.






          share|improve this answer






















          • Cool! Glad to hear! Mark as answered, if this is the solution you needed.
            – michaelh
            Aug 30 at 19:32










          • Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
            – mins
            Aug 31 at 6:48










          • Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
            – michaelh
            Aug 31 at 9:18










          • Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
            – mins
            Sep 2 at 0:34














          up vote
          5
          down vote



          accepted










          You could just use instances. (Copying with Alt + D)
          Or, after the fact, assign the same Data Block to every light here:



          lights



          Alternative with Drivers:



          Add a driver like this to the Strength of every lamp. That way you can maintain more control over individual lamps.



          driver



          This uses the zLocation of an Empty and multiplies it with the Strength. You would simply use the same Empty for all Lamps. That way you can control them all at once.



          Update for Color



          Here's an example to control the color in a similar way.



          This is the node setup for the Lamp.



          nodes



          Then add the following drivers accordingly.



          huesatval



          This is relatively intuitive to use.






          share|improve this answer






















          • Cool! Glad to hear! Mark as answered, if this is the solution you needed.
            – michaelh
            Aug 30 at 19:32










          • Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
            – mins
            Aug 31 at 6:48










          • Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
            – michaelh
            Aug 31 at 9:18










          • Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
            – mins
            Sep 2 at 0:34












          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          You could just use instances. (Copying with Alt + D)
          Or, after the fact, assign the same Data Block to every light here:



          lights



          Alternative with Drivers:



          Add a driver like this to the Strength of every lamp. That way you can maintain more control over individual lamps.



          driver



          This uses the zLocation of an Empty and multiplies it with the Strength. You would simply use the same Empty for all Lamps. That way you can control them all at once.



          Update for Color



          Here's an example to control the color in a similar way.



          This is the node setup for the Lamp.



          nodes



          Then add the following drivers accordingly.



          huesatval



          This is relatively intuitive to use.






          share|improve this answer














          You could just use instances. (Copying with Alt + D)
          Or, after the fact, assign the same Data Block to every light here:



          lights



          Alternative with Drivers:



          Add a driver like this to the Strength of every lamp. That way you can maintain more control over individual lamps.



          driver



          This uses the zLocation of an Empty and multiplies it with the Strength. You would simply use the same Empty for all Lamps. That way you can control them all at once.



          Update for Color



          Here's an example to control the color in a similar way.



          This is the node setup for the Lamp.



          nodes



          Then add the following drivers accordingly.



          huesatval



          This is relatively intuitive to use.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 31 at 9:15

























          answered Aug 30 at 9:46









          michaelh

          603213




          603213











          • Cool! Glad to hear! Mark as answered, if this is the solution you needed.
            – michaelh
            Aug 30 at 19:32










          • Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
            – mins
            Aug 31 at 6:48










          • Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
            – michaelh
            Aug 31 at 9:18










          • Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
            – mins
            Sep 2 at 0:34
















          • Cool! Glad to hear! Mark as answered, if this is the solution you needed.
            – michaelh
            Aug 30 at 19:32










          • Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
            – mins
            Aug 31 at 6:48










          • Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
            – michaelh
            Aug 31 at 9:18










          • Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
            – mins
            Sep 2 at 0:34















          Cool! Glad to hear! Mark as answered, if this is the solution you needed.
          – michaelh
          Aug 30 at 19:32




          Cool! Glad to hear! Mark as answered, if this is the solution you needed.
          – michaelh
          Aug 30 at 19:32












          Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
          – mins
          Aug 31 at 6:48




          Note the question was for Cycles lamps which have no Strength attribute, but the principle is an interesting one. Perhaps you could update the example for the Color attribute.
          – mins
          Aug 31 at 6:48












          Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
          – michaelh
          Aug 31 at 9:18




          Ah, you deleted your first comment. ... - The Lamp doesn't, but the Lamp Material, of course. I updated the answer to add the example for the Color. But it is basically the exact same principle.
          – michaelh
          Aug 31 at 9:18












          Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
          – mins
          Sep 2 at 0:34




          Thanks for additional details (I didn't mean changing the color, but was asking for how was the color node changed so that the intensity of the lamp could be changed -- you actually provided the details too, great). In the meantime I learned about drivers, and see the source value for the driver could also be a custom property of one of the lamps (instead of the empty location).
          – mins
          Sep 2 at 0:34

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fblender.stackexchange.com%2fquestions%2f117241%2fhow-to-switch-all-lights-on-off-at-once-in-cycles%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery