Export and/or draw property value after render
Hi,
I've been looking through the forum for a topic like this and so far no luck.
What I'm trying to do with an animation scene is for each frame (individual jpg) have DAZ write in text on the rendered image the value of some object's properties. Lets say "X, Y, Z and scale %" or export it to Json/XML/txt or whatever... ODBC? or both actually print it on the jpg AND export the properties+values to a file or a set of files. I'm not picky on the format I just want to track some values without writing them down by hand in my database for each frame of some thousands and some.
Exporting alone would be great because then I could watermark the Jpg with a 3rd party program based on the text file(s)
I suppose it could be scripted but I haven't done anything like that with Daz before... so anything anybody can do to help me get started?
Comments
You'll need to write a script (that does the individual renders, and increments the frame) which after the render completes, runs a third-party utility (like ImageMagick) to write text on the image. I don't think there is any way to do this inside of DS alone.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/rendering/render_post_process/start
Thank you, now I see how a post render script can be created. Which is half of what I need to get started!
But I still lack the part where I can access (some of) the figure properties and save them to a seperate file either as DSON or other...
See these sections of the documentation:
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#properties
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#save_filters
Thank you, It looks like the 2nd link might have what I'm looking for...