I added the maya like one to the script!
looks good, as a special prize i committed it to default set
I get an error
no module named space.view3d_opengl_lights 0
ideas?
Edit: seems to be an issue in addons_utils.py on line 306. I get it with some other addons as wellâŚ
this is very simple to use. thanks!
hi, can you write me steps to reproduce? blender version? full error message with stack trace?
thanks
Sure. It´s a build from builder.blender.org, f2434e5. A couple of days old I think.
bpy.context.space_data.system_folders_active = 6
Modules Installed from âI:\blender addons\space_view3d_opengl_lights 0.3.2.pyâ into âC:\Users\Daniel\AppData\Roaming\Blender Foundation\Blender\2.74\scripts\addonsâ (space_view3d_opengl_lights 0.3.2)
Traceback (most recent call last):
File âC:\Users\Daniel\Desktop\blender-2.74-f3434e5-win32\2.74\scripts\modules\addon_utils.pyâ, line 306, in enable
mod = import(module_name)
ImportError: No module named âspace_view3d_opengl_lights 0â
hmm, downloaded last mac build and i canât replicate it, and i guess this is something to be fixed by bf, especially when it happens with other addons as well, it happens when you enabling addon right? around line 306 in addon_utils.py is code related to enabling addonsâŚ
Oh, I think it´s fairly obvious the issue is either of my doing or Blender itself, was just hoping someone would have an idea I´ll check on IRC sometime.
try changing the name of the py file to âspace_view3d_opengl_lights.pyâ (remove empty space and 0.3.2)
That was it! Thanks yii7
nice one, havenât noticed
happy to help. Cheers.
Tried it. Great add on. It must go the trunk.
Nice addon.
Have done some presets too, maybe someone finds it useful:
Blue
import bpy
l0 = bpy.context.user_preferences.system.solid_lights[0]
l1 = bpy.context.user_preferences.system.solid_lights[1]
l2 = bpy.context.user_preferences.system.solid_lights[2]
l0.use = True
l0.diffuse_color = (0.2734818160533905, 0.2734818160533905, 0.2734818160533905)
l0.specular_color = (0.24918273091316223, 0.24918273091316223, 0.24918273091316223)
l0.direction = (-0.1355932205915451, -0.7118644118309021, 0.6891034841537476)
l1.use = True
l1.diffuse_color = (0.20033782720565796, 0.22588980197906494, 0.5999999046325684)
l1.specular_color = (0.12526345252990723, 0.12526345252990723, 0.12526345252990723)
l1.direction = (-0.08474576473236084, -0.8813559412956238, 0.4647901654243469)
l2.use = True
l2.diffuse_color = (0.13792702555656433, 0.4015263617038727, 0.6601572036743164)
l2.specular_color = (0.06728240847587585, 0.0, 0.0)
l2.direction = (-0.06779661029577255, -0.6440678238868713, 0.7619581818580627)
DarkBlue
import bpy
l0 = bpy.context.user_preferences.system.solid_lights[0]
l1 = bpy.context.user_preferences.system.solid_lights[1]
l2 = bpy.context.user_preferences.system.solid_lights[2]
l0.use = True
l0.diffuse_color = (0.2734818160533905, 0.2734818160533905, 0.2734818160533905)
l0.specular_color = (0.24918273091316223, 0.24918273091316223, 0.24918273091316223)
l0.direction = (-0.06152716279029846, 0.09881635755300522, -0.993201732635498)
l1.use = True
l1.diffuse_color = (0.20033782720565796, 0.22588980197906494, 0.5999999046325684)
l1.specular_color = (0.12526345252990723, 0.12526345252990723, 0.12526345252990723)
l1.direction = (-0.08474576473236084, -0.8813559412956238, 0.4647901654243469)
l2.use = True
l2.diffuse_color = (0.13792702555656433, 0.4015263617038727, 0.6601572036743164)
l2.specular_color = (0.06728240847587585, 0.0, 0.0)
l2.direction = (0.19006574153900146, 0.6479514241218567, -0.7375866174697876)
Gold
import bpy
l0 = bpy.context.user_preferences.system.solid_lights[0]
l1 = bpy.context.user_preferences.system.solid_lights[1]
l2 = bpy.context.user_preferences.system.solid_lights[2]
l0.use = True
l0.diffuse_color = (1.0, 0.7894006967544556, 0.3232583701610565)
l0.specular_color = (0.6618636846542358, 0.6029309034347534, 0.15216150879859924)
l0.direction = (0.014084506779909134, 0.30985915660858154, 0.9506781101226807)
l1.use = True
l1.diffuse_color = (0.5551280975341797, 0.2688295543193817, 0.0)
l1.specular_color = (0.3757493197917938, 0.3655879497528076, 0.3086591064929962)
l1.direction = (0.056338027119636536, 0.014084506779909134, 0.9983123540878296)
l2.use = True
l2.diffuse_color = (0.6601572036743164, 0.34014061093330383, 0.18302389979362488)
l2.specular_color = (1.0, 0.25794363021850586, 0.0)
l2.direction = (-0.2957746386528015, 0.7605633735656738, 0.5779798030853271)
Brown
import bpy
l0 = bpy.context.user_preferences.system.solid_lights[0]
l1 = bpy.context.user_preferences.system.solid_lights[1]
l2 = bpy.context.user_preferences.system.solid_lights[2]
l0.use = True
l0.diffuse_color = (0.13286477327346802, 0.10678426176309586, 0.04757978022098541)
l0.specular_color = (0.24918273091316223, 0.2277134656906128, 0.061215177178382874)
l0.direction = (0.014084506779909134, 0.30985915660858154, 0.9506781101226807)
l1.use = True
l1.diffuse_color = (0.5551280975341797, 0.2688295543193817, 0.0)
l1.specular_color = (0.12526345252990723, 0.12204241752624512, 0.1039421409368515)
l1.direction = (0.056338027119636536, 0.014084506779909134, 0.9983123540878296)
l2.use = True
l2.diffuse_color = (0.6601572036743164, 0.34014061093330383, 0.18302389979362488)
l2.specular_color = (0.06071986258029938, 0.01936122216284275, 0.0)
l2.direction = (-0.2957746386528015, 0.7605633735656738, 0.5779798030853271)
Sunglow
import bpy
l0 = bpy.context.user_preferences.system.solid_lights[0]
l1 = bpy.context.user_preferences.system.solid_lights[1]
l2 = bpy.context.user_preferences.system.solid_lights[2]
l0.use = True
l0.diffuse_color = (0.2734818160533905, 0.2734818160533905, 0.2734818160533905)
l0.specular_color = (0.24918273091316223, 0.24918273091316223, 0.24918273091316223)
l0.direction = (-0.6779661178588867, 0.23728813230991364, 0.6957415342330933)
l1.use = True
l1.diffuse_color = (0.5999999046325684, 0.27687057852745056, 0.03442421182990074)
l1.specular_color = (0.12526345252990723, 0.12526345252990723, 0.12526345252990723)
l1.direction = (-0.08474576473236084, -0.8813559412956238, 0.4647901654243469)
l2.use = True
l2.diffuse_color = (0.6601572036743164, 0.6199004650115967, 0.3805042505264282)
l2.specular_color = (1.0, 0.562995433807373, 0.18194621801376343)
l2.direction = (0.33732330799102783, -0.45875969529151917, -0.8220417499542236)
Very Handy! Things like this are very welcome!
Ty !
Sweet!
Hi! can anybody try to make it animatable?? adding keyframes on the edit panel for the direction or colors could be really cool,
I also use architectural preset to have absolute uniform shading to check diffuses of building models
import bpy
l0 = bpy.context.user_preferences.system.solid_lights[0]
l1 = bpy.context.user_preferences.system.solid_lights[1]
l2 = bpy.context.user_preferences.system.solid_lights[2]
l0.use = True
l0.diffuse_color = (0.6000000238418579, 0.6000000238418579, 0.6000000238418579)
l0.specular_color = (0.05000000074505806, 0.05000000074505806, 0.05000000074505806)
l0.direction = (-0.7530864477157593, 0.6419752836227417, 0.14397411048412323)
l1.use = True
l1.diffuse_color = (1.0, 1.0, 1.0)
l1.specular_color = (0.13166508078575134, 0.13166508078575134, 0.13166508078575134)
l1.direction = (0.5429999828338623, 0.06700000166893005, 0.8370000123977661)
l2.use = True
l2.diffuse_color = (0.550000011920929, 0.550000011920929, 0.550000011920929)
l2.specular_color = (0.01600000075995922, 0.01600000075995922, 0.01600000075995922)
l2.direction = (-0.9629629850387573, 0.0, 0.2696337103843689)
Useful add-on. One nice addition would be an option to generate Cycles lights for rendering.
Hello. I have been using this addon a lot but I have recently needed to reinstall it after installing the latest version of blender. Problem is I copied the file, saved it and tried installng it through the preferences tab but I keep getting an error each time I try to install it. :c
EDIT: For some reason thereâs an e that sat at the beginning before the rest of the code. How oddâŚ