Forum: Poser - OFFICIAL


Subject: Python script?

Debs opened this issue on Apr 10, 2005 ยท 8 posts


Debs posted Sun, 10 April 2005 at 4:35 PM

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

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

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

My python page
My ShareCG freebies