Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
There's one obvious error: you need the
parentheses on AntialiasNow because it's
a function call.
Also, I don't think you need the DrawAll,
because the AntialiasNow does its own draw.
But even after that, I agree that the
antialiasing action is NOT happening.
Here's how I'd write it:
import poser
scene=poser.Scene()
scene.AntialiasNow()
scene.SaveImage("tif",name)
You may need to do a full render.
Bear in mind that RenderToNewWindow
works in Python, but there's no
way to save the NewWindow as a file.
(This is a really bad problem with
the Poser setup itself.)
You'll have to be sure RenderToNewWindow
is off, then render to the document
window, then save as you have done.
import poser scene=poser.Scene() scene.SetRenderToNewWindow(0) scene.Render() scene.SaveImage("tif",name)
Message edited on: 11/13/2004 10:52
My python page
My ShareCG freebies
As far as I can tell, AntialiasNow simply does nothing. I tried AntialiasNow(1) but that wasn't any better. Maybe someone else has the solution!
My python page
My ShareCG freebies
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.
I want to render some comic illustration from python in poser. But how can i antialias them as I would do from menu:
Render/Antialias Document
This is what the code in my program looks at the moment:
poser.Scene().AntialiasNow
poser.Scene().DrawAll()
poser.Scene().SaveImage("tif",name)
I Tried to swap antialais and drawall but nothing helped. The image that is saved is not antialised. Thanks for any help!