Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Feb 11 3:50 am)
I guess you need shadows on other parts, right? Or it would be easier to turn off shadows at the light. I searched freestuff and couldn't find a script for this. Perhaps Ockham or someone equally skilled at Python could do it?
FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You just can't put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
Using Poser since 2002. Currently at Version 11.1 - Win 10.
==================================================
If it's not for P6, you'll have to hack at CR2 for each figure to do the job.
Similar to making a MAT, but you want only the castShadow line.
E.g.
{<br></br>version<br></br> {<br></br> number 4.0<br></br> }<br></br>actor hip:1<br></br> {<br></br> castsShadow 0<br></br> }<br></br>figure<br></br> {<br></br> }<br></br>}<br></br>
One actor block (with name changed) for each actor in the figure.
If that doesn't work there are command line tools that might help (very unlikely that any text editor will handle that big a file).
Okay, I have no idea how to create a python script, so this is what I did: I cut and pasted the text in your link (I do have P6) into word pad. I then saved it and changed the extension from .txt to .py. When I ran it, I got this error: File "", line 7 act.SetCastsShadows(0) ^ SyntaxError: invalid syntax How do I fix it? Thanks for the help by the way... I hate waiting for a render only to havd it turn black...
The script should look like this :-
import poser<br></br><br></br>scene = poser.Scene()<br></br>fig = scene.CurrentFigure()<br></br>if fig != None:<br></br> for act in fig.Actors():<br></br> act.SetCastsShadows(0)<br></br>
The spaces are important, so to be on the safe side, right click on the link and save as an appropriately named file.
Is there a python script to turn on shadows in all figures (not just the current one)? I really have too many figures to pick each individualy.
My Homepage - Free stuff and Galleries
Attached Link: http://www.renderosity.com/photos/MSG2/Message2080921.txt
Here's a script written by ockham: cast shadows off/on it should do what you need.I must remember to remember what it was I had to remember.
putting the enter in at the end made it work for me. I have ockham's script, but i really have too many figures to make it practical.
My Homepage - Free stuff and Galleries
Copy the text in the attahced link and paste it into a text editor. Save it as 'P4V2 ShadowOff.pz2' to a pose folder.
Alternativly you can turn off 'Cast shadows' for the whole scene from the Render Options.
If you need to cast shadows from some props but not cast them from any figures, then this can probably only be implimented from a Python script. Try posting a request in the 'Poser Python Scripting' forum.
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.
Is there an easy way to do this? Thanks...