Sun, Jan 26, 8:04 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 25 9:50 pm)



Subject: Python script?


Debs ( ) posted Sun, 10 April 2005 at 4:35 PM · edited Sun, 26 January 2025 at 7:55 AM

Hello, I wonder if any one can help me?, I'am looking for a python script which would parent all the lights to character. I found the lighting tutorial attaining to the script i am looking for at curiouslabs.com written by Cris Palomino,but there is no link to the "ParentAllLights.py" script,which was created by John Brugioni. Would really appreciate any help


ockham ( ) posted Sun, 10 April 2005 at 4:42 PM

file_218930.jpg

Here's a super-simple script that parents all lights to the BODY of the currently selected figure. Take the attached text and rename it to ParentLite.py before using.

My python page
My ShareCG freebies


Debs ( ) posted Sun, 10 April 2005 at 4:56 PM

Thank you!! so much for your quick reply. Can always count on members here for there support. Debs


ghelmer ( ) posted Sun, 10 April 2005 at 5:00 PM

Hey ockham, while you're in Python Guru mode I wonder if I could ask ya a ? too... Is it possible for a python script to change all shadows from raytrace to shadowmap or vice versa?? Just wonderingif it's possible... I have next to -zero python knowledge!! Later! Gerard

The GR00VY GH0ULIE!

You are pure, you are snow
We are the useless sluts that they mould
Rock n roll is our epiphany
Culture, alienation, boredom and despair


ockham ( ) posted Sun, 10 April 2005 at 5:19 PM

Attached Link: http://ockhamsbungalow.com/Python/LightPanel5.zip

It should be possible to do it directly in 6, but the given method doesn't seem to work yet. My LightPanel script does it indirectly, in a way that works in all sub-versions of 5 and 6.

My python page
My ShareCG freebies


ghelmer ( ) posted Sun, 10 April 2005 at 5:21 PM

Thanks ockham!!! You and your scripts are always helpful & useful!!!! Thanks!!!! G

The GR00VY GH0ULIE!

You are pure, you are snow
We are the useless sluts that they mould
Rock n roll is our epiphany
Culture, alienation, boredom and despair


Debs ( ) posted Sun, 10 April 2005 at 5:43 PM

Hello ockham, Sorry to trouble you again, I am getting this error come up when running the script File "", line 4 .ParentActor() ^ SyntaxError: invalid syntax I am sure if I understood how scripts work there would be a simple explanation,but i will leave it up to the Guru Thanks


ockham ( ) posted Sun, 10 April 2005 at 5:48 PM

file_218931.jpg

Yeah, that ParentActor seems to give trouble in some versions. Try this instead.

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.