Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

How to append "...save a render as a PNG" to a sample script?

$
0
0

Hi, I'm coming from Python hacking, and am a beginner trying to undertand how DAZ scripts do some very simple things.

How do I add a line or two, perhaps at the end of a render-settings setup script, to tell DAZ....

"OK, now make a render of the scene, and save this render into C:\A_Named_Directory as a .PNG file"

I can find many sample DAZ scripts, but none show how to do this simple task.

Ideally, the saved PNG also has transparency (an alpha) around the rendered scene object (e.g. a simple cube against an empty background).

In Python and Poser, invoking a render and save is as simple as giving the commands:

scene.Render()

scene.SaveImage("png", r"C:\render.png")

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>