Thu, Nov 28, 12:49 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 28 11:20 am)



Subject: Python to change lights bias


ima70 ( ) posted Sun, 20 July 2008 at 9:13 AM · edited Thu, 28 November 2024 at 12:42 PM

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 · edited 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 · edited Sun, 20 July 2008 at 11:14 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 · edited Sun, 20 July 2008 at 11:47 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


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.