Forum: Poser - OFFICIAL


Subject: Python to change lights bias

ima70 opened this issue on Jul 20, 2008 · 10 posts


ima70 posted Sun, 20 July 2008 at 9:13 AM

Somebody please help, I need a python to change lights bias to 0.2 or 0.1in all the lights in the scene since I'm using Poser 5 and it's very tedious to change all bias for all lights in a global set, I know it must be very easy to do but the true is I have no idea how to program Python.

Thank you.


ockham posted Sun, 20 July 2008 at 9:21 AM

My old Light Panel script changes Bias, along with most other settings.
It acts on all lights, or lights selected from a listbox.

http://ockhamsbungalow.com/Python/LightPanel7.zip

My python page
My ShareCG freebies


ima70 posted Sun, 20 July 2008 at 10:57 AM

Thanks ockham, I use a version called newlightpanel that run in P5, the one that you name here doesn't work in P5, your newlightpanel is very useful for me, with it I delete, change map size and a lot of things but bias parameter go from 1 to 40 and cant set it to such an small value like 0.2 or 0.1, I've open it in a text editor to see if there is something I can change, but the true is it looks like basic mandarin for me :-) considering I speak spanish and try english LOL


ockham posted Sun, 20 July 2008 at 11:02 AM

I'll fix that immediately.  I didn't realize that was a problem.

My python page
My ShareCG freebies


ockham posted Sun, 20 July 2008 at 11:12 AM

Okay, I changed the Bias slider to use steps of .01 instead of 1.0 and
added the modified "newlightpanel" script to the main light panel ZIP. 

This version is named LightPanelP5.py in the ZIP because the name
"newlightpanel" could be confusing!

http://ockhamsbungalow.com/Python/LightPanel7.zip

My python page
My ShareCG freebies


ima70 posted Sun, 20 July 2008 at 11:20 AM

OK thank you very much, you are great!!! testing now


ima70 posted Sun, 20 July 2008 at 11:22 AM

It seam to be the same version you posted first, I get the same error and the name of the script is lightpanel.py


ockham posted Sun, 20 July 2008 at 11:29 AM

This is probably a result of caching in the website or your browser.
Here's a temporary upload of the new ZIP with a separate name:

http://ockhamsbungalow.com/Python/TempLightPanel.zip

My python page
My ShareCG freebies


ima70 posted Sun, 20 July 2008 at 11:40 AM

I tested the light panelP5.py but bias or doesn't change or get 2.42 value
by the way it would be great to be able to increase the map size in steps of 64 if it's not asking too much.


ockham posted Sun, 20 July 2008 at 12:01 PM

Well, something is strange about the Min Bias.  I've tried a number
of different things but can't get it to respond.  I'll have to think about this.

My python page
My ShareCG freebies