1
$\begingroup$

So I'm looking for a way to select all my lights in my scene and multiply the power of them by 10000.

They aren't linked as they will have different power and colour settings. I just need to change the wattage as I'm in a crazy large scale for a video game.

I just want to be able to check my lights in blender by scaling up the brightness and back down again. I've tried scaling the world down so the lights are good that way but it causes many issues.

$\endgroup$
2
  • $\begingroup$ If you need change all values to the same power - select all lights and for active one change value. Hovering over the value field - right click menu And choose Copy to Selected $\endgroup$
    – vklidu
    Commented Jun 29, 2022 at 12:08
  • $\begingroup$ If you need to add Multiply mode And control all lights you would have to share one group in each light materiál ... That sounds late Now fór you ... So you would ask someone with Python knowledge. $\endgroup$
    – vklidu
    Commented Jun 29, 2022 at 12:12

1 Answer 1

1
$\begingroup$

You can add the same amount of numerals to values by holding ALT and click-and-drag value slider left or right. The box becomes blue in this case:

enter image description here

But I don't know the tricks to multiply values but making the script.

It is not hard in this case, just loop thought selected objects and multiply a value that you can get from context menu "Copy Data Path"

import bpy

for obj in bpy.context.selected_objects:
    obj.data.energy *= 100

Copy-paste this text into text editor and press triangle play button to see the effect.

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ that works perfectly! and to put back just change the "*" for a "/" and run the script again for anyone else. Cheers! $\endgroup$ Commented Jun 30, 2022 at 0:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .