Help for create script Daz for render NFT collection
Ktmremi500
Posts: 0
hello, I want to create a script to generate random characters by selecting assets and rendering to PNG with an associated json file?
someone help me please? I'm not familiar with DAZ scripts.
thank you
Post edited by Richard Haseltine on
Comments
So you want to create renders from a selection of poses, and an associated JSON file?
yes, I want to randomly generate renderings according to the selected assets and an associated json file.
like the figurizer tool used in this video:
yes that's it, by selecting specific elements. The project is not limited to the single sale of NFTs, they will be integrated into a metaverse and above all 90% of the funds raised will be used to provide returns to NFT holders. I want to generate them via DAZ because the rendering is incredibly realistic.
Well, the NFPs are not images they are mdoels, so you couldn't do that with Daz or other assets as it would involve distributing licensed material (not that the NFT is the 3D, or even 2D in most cases, data). You could use 2D renders as the basis for an NFT, but that would be a very different beast.
the principle is to build the nft in PNG type image rendering with elements from my library (made by myself)
Several samples here http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#general1 cover rendering for specific purposes, you should be able to extract the comon elements to render a plain image.
For the JSON file, set up a data object that has the required data and use JSON.stringify( object ) to turn it into a string which can be written to file. http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/json
Asset loading isn't covered by a script, but there are samples that will cover reading a directory http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#locating and then you just need to use DzContentMgr to load the ones you want http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/contentmgr_dz#a_1a43e46e9be7ac632990125dcd40721b1b
I'm myself looking for someone capable to do this randomization with the 3D assets and objects I create so we can render them and obtain 2000 to 3000 random generated images out of them.
Anyone with the ability to do this, can reach out to me at [email protected]
Thanks!!