Mon, Jan 6, 9:31 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 06 7:01 am)



Subject: Locking lights


ashley9803 ( ) posted Sat, 01 April 2006 at 9:22 PM · edited Wed, 01 January 2025 at 2:12 PM

When a scene is set up with, say 5-6 lights pionted a a character (using "point at"), and I want to replace that character with another , the "point at" lights no longer know where to point as the original character is no longer there. Is there a way to lock lights into position and direction pointed. It takes a long tome to figure out whech ones are pointing where and re-point them. Or is there a quick way to know what character a light is pointed at. Does the hierachy list show this?


Acadia ( ) posted Sat, 01 April 2006 at 9:26 PM

I think I saw something about this in another thread. It involved using a primitive box and pointing the light at it, and shrinking the box down to the smallest size you can. There might have been more to it than that, but that's all I remember.

"It is good to see ourselves as others see us. Try as we may, we are never
able to know ourselves fully as we are, especially the evil side of us.
This we can do only if we are not angry with our critics but will take in good
heart whatever they might have to say." - Ghandi



geep ( ) posted Sat, 01 April 2006 at 10:08 PM

... or just make the box invisible.

Remember ... "With Poser, all things are possible, and poseable!"


cheers,

dr geep ... :o]

edited 10/5/2019



ashley9803 ( ) posted Sun, 02 April 2006 at 6:20 AM

I now remember this too. However, if I move my character within the scene this will not cause the lights to follow. Unless I parent the invisible prop to the figure. What will happen with the prop when the figure is replaced? I'll play around a bit and see what happens. Thanks guys.


geep ( ) posted Sun, 02 April 2006 at 6:56 AM

You will have to re-parent the box to the new figure. ;=]

Remember ... "With Poser, all things are possible, and poseable!"


cheers,

dr geep ... :o]

edited 10/5/2019



destro75 ( ) posted Sun, 02 April 2006 at 11:10 AM · edited Sun, 02 April 2006 at 11:25 AM

This could probably be solved via a Python script. Set up a box prop, inside the mesh of the figure, that the user via a select box determines, then parent the lights to it, then make the box invisible, and parent the the figure and box. Via the script, if you changed the figure, you could then run the script again, and it would then set the new parent.

This is purely theorectical, but I don't think it would be too much work. EDIT: Okay, I am trying to work on this now. It may take a little time, so bear with me. I'll let you know when it's done.

Message edited on: 04/02/2006 11:25


destro75 ( ) posted Sun, 02 April 2006 at 10:08 PM

file_288132.jpg

Okay, I think I got it. The attached file is the script. Save it into your Poser 6RuntimePythonposerScriptsWacrosUserDefined folder, and name it: Lock_Lights.py

Before running the script, create a prop, such as a box prop. This will be the actor you will parent your lights to.

The first drop down box will allow you to choose the figure you want the lights to follow. The second drop down will allow you to choose an actor in the scene to parent the lights to (the box primitive above.)

The script will then run. You will see a Python output box. It will take about half a minute to run. When it is done running, you will see a message telling you how long the script took to run, and the word Done. You can then close that Python window.

The lights will then follow the figure around the scene. The prop you used to parent the lights to will have disappeared. Do not delete the object, as that will break the parenting. Also, do not parent the lights to any of the figure's actors. It's a long list of actors that pops up, but if you set the prop to use to one of the figure's body parts, that part will disappear.

Let me know if there are any problems with the script. Hope this helps!


ashley9803 ( ) posted Sun, 02 April 2006 at 10:35 PM

Holy pythons destro75. I can't believe you went to this trouble. Thank you so much. Hope it works in P5.


destro75 ( ) posted Sun, 02 April 2006 at 10:47 PM

Pfeh, twere no trouble t'all ;-) Seriously though, it should work in P5. Please let me know if you run into any problems.


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.