I am looking for some help for custom export, setting morphs via script
hzr
Posts: 210
Hey there,
I am currently in the process of making the best off the daztoc4d bridge and that brings me to a step inside the pipeline which has me exporting a couple morphs over and over depending on base figure shapes that I created. My idea is to create a script, fill an array with urls to the specific morphs in the figure properties, or wherever they are nested in, then have a foreach cycle through it and set each of the morphs to 100%, wait a short moment so the morph is set, then call the daz obj exporter to export the figure in its current state with the morph dialed in, wait a little bit to make sure the morph export has finished, and then loop the thing
So basically like this:
fill array with morph url values
for each x in array
{
set morph value = 1
wait 500ms
trigger exporter
wait 2000ms
}
Anyone here who could give me the information needed, so I can actually set morph values via script, and how to trigger the export function?
If someone even has the time to create a script that does it, that would be great too, would save me the time to set it up :)
Thanks in advance to anyone sacrificing some time to help out.

Comments
How to export OBJ https://docs.daz3d.com/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/export_obj_silent/start
How to get proeprties https://docs.daz3d.com/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/node_properties/start
Method to set a value on a float proeprty (which a morph slider will be) https://docs.daz3d.com/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/floatproperty_dz#a_1ad14f1a69d9cc1bd789f3753bbba3bd04
Make sure you adhere to the license terms if you use any of the sample code.
Thanks Richard, that will definately get me going.