Wed, Nov 27, 1:28 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Faking ambient light?


draught ( ) posted Fri, 28 January 2005 at 5:06 PM · edited Wed, 27 November 2024 at 11:28 AM

Would it be possible to have a python script that would give you a dial that controls the ambient value of every surface in a scene at the same time?That way it would be possible to just have one key light and avoid multiple highlights on shiny objects.


ockham ( ) posted Fri, 28 January 2005 at 8:16 PM

Interesting! I'll try it.

My python page
My ShareCG freebies


ockham ( ) posted Fri, 28 January 2005 at 9:18 PM

file_175857.jpg

Works rather nicely, I think. I used an increment / decrement of 5%, which may be too much. Can add coarse-fine buttons if wanted. Take the attached text and rename to AdjAmbient.py before using.

My python page
My ShareCG freebies


draught ( ) posted Sat, 29 January 2005 at 3:07 AM

Thank you very much,will try a.s.a.p.


draught ( ) posted Sat, 29 January 2005 at 2:32 PM

I'm afraid I can only get it to work on basic props-not on figures and you lose the adjustment once you render.I'm running Poser 5 with latest upgrade-I,m probably doing something stupid!


ockham ( ) posted Sat, 29 January 2005 at 3:24 PM

I tested it only in 4. Will try in 5; I suspect a whole different approach may be needed there.

My python page
My ShareCG freebies


ockham ( ) posted Tue, 01 February 2005 at 12:46 PM

file_175859.jpg

Finally, here's an improved version, but it doesn't seem to handle Hair for some reason. Try it... Tell me especially if there is something *besides* Hair that it fails to change, or if it *does* change the Hair on some figure. I'm tearing out my own hair (what little is left) in trying to determine why the Hair won't change.... maybe some external information will help to determine the missing categories!

My python page
My ShareCG freebies


underdog ( ) posted Sat, 05 February 2005 at 12:52 PM

Ockham, the version that I see posted above has ''' (three single quotes) commenting out the part for figures. Did you mean to not adjust the ambient on the figure?


underdog ( ) posted Sat, 05 February 2005 at 4:29 PM

Attached Link: http://www.fantasy3d.com/pfiles/python/GlobalAmbient.zip

I wrote this one, basing it loosely on Ockham's script. It allows you to separate the red, green and blue components of global ambience. It updates as you drag the slider.

I tried to include a "cancel" button that would restore the original ambient settings, but I have run into the "hair" problem. It looks like hair, and other parented props, aren't being restored. I messed with that a bit, but I haven't figured out why.

Aside from that bug, this seems to work pretty well. Give it a try and please let me know what you think.


underdog ( ) posted Sat, 05 February 2005 at 11:02 PM

Attached Link: http://www.fantasy3d.com/pfiles/python/GlobalAmbient.zip

btw, I think I fixed the parented object problem. I posted the fix to the same link.


draught ( ) posted Sun, 06 February 2005 at 3:44 PM

Many thanks to you both.I still find that you lose the ambient change once you render.Thats in Poser 5,I dont have 4 to try it in.I do appreciate your efforts.


underdog ( ) posted Sun, 06 February 2005 at 6:31 PM

Holy crud. So you lose the ambient when you render?? I hadn't realized that. I will take a look. I am using P4, but I have P5 installed downstairs on that computer. That sure makes no sense to me at all. Maybe it has to do with the render engine on P5? What happens if you use the P4 renderer on P5? I guess I can find out for myself but if you happen to try that, please let me know.


underdog ( ) posted Sun, 06 February 2005 at 6:43 PM

file_175860.jpg

Well, I tried rendering on P4 and it came out ok. The image on top has ambience turned up pretty high and the image below it has ambience turned up even further.

So, it seems to work fine on P4. I guess those pesky material nodes are getting in the way again. I can't believe P5 won't let you modify them YET even though that program is about, what, two years old now?

Sorry. I can't test P5 right now. My daughter is hogging my other computer. But I bet that is going to be a whole other can of worms, as Ockham suggested early on.

(memo to self: learn to read threads)

===Underdog===


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.