here is a script to add different basic light set up in scene
here are some examples of light set up
3/4 point light set up
Light box 1-2 light set up
ect…
Special render
Sepia render
Clay render
sketchup render
Warnings:
Always save your original file under a new name or save it in another folder
to keep your original files.
This script will erase all lights and most empties in a scene for new light set up
So you will loose your scene world values set up and lamps set up in you file.
The program/script cannot guess what your thinking for a specific scene and we had to use average values or estimate some other parameters to design an average light set up!
The light set up assume some general principles of ligthing and use average values
so after adding a new light set up you may have to manually fine tune the set up
by re adjusting lights intensity or location/ rotation to get your final light set up!
to run this
you select an item in menus which you can find in the tool pro area at bottom of tool shelf window
then at bottom you click on the execute to add the new light set up
below the execute button there is a manual erase button to erase all
lamps and empties added by the set up
here is the latest new version i did for this ligthing set up
RickyBlender i tried your setup works apart from the studio setup. i have a little suggestion maybe you could use some simple math to calculate light settings so they work together and give variations on the same setup when it’s enabled (the random module would come in handy there). just an idea
Before your script had to run from the text editor window. The registration section allow the script to be installed as a plugin… This is good for blender noobs who don’t know how to run a python script.
im using 2.56a and i get this error with studio lamps…
File “lightsetupricky5.py”. line 523, in execute
ob=bpy.data.objects[namewall]
KeyError: ‘bpy_prop_collection[key]: key “90dgreeswall” not found’
i think that it’s a missing object or something maybe you need to find a way that doesn’t rely on certain objects in the scene.
well you could randomize an integer to give different lamp energy settings, colors, if it use’s diffuse or specular or not etc… etc… on each lamp setup you have. something like this…
import random
3_point_lamp = random.randint(0,1) # can be wide range as you want
if 3_point_lamp==0:
# lamp settings here
if 3_point_lamp==1:
# different lamp settings here
I’m using Blender 2.56a Build 34417 and I’m not getting any error with studio lights… One thing I did notice that if you click remove all lamps and there are no lamps in the scene it crashes. There needs to be a check for that…
As for the random thing… I would be more for specific energy settings not random ones.
ok how an a test be done to check if there are any lamp!
may be check the count if = 0
and for color some set up requiries specific color to enhance contrast for instance
and it’s not random at all !
for energie well function of the scene size
if we had IES lamps might be possible to calculate this but until we get theses don’t think there is any way to estimate this!
Ok, I have just confirmed that this plugin is not compatible with the release from the blender.org website… The problem is that build is to old, and the plugin is written for a more finalized version of blender 2.56. I suggest you go to graphicall.org and download a newer version of blender if you want to use this plugin.
I just had a idea… Maybe we could setup a parameter for a domain object which must be a cube (the script would check to make sure it has only has 6 faces) the script would then integrate threw all the faces on the domain parameter to calculate the scene size. Then the lamp energy could be a function of that calculated size.
Ricky what do you think? I might be able to code that with a little research…
The Lamp energie equation is derived from a function of equations… You’ll just have to trust me, I’m great at high level math. And yes this is for a blender lamp
L = light intensity I called it energy, but I mean the light intensity value