List of available head morphs
Just a quick question.
I don't want to delve too deep into scripting - just want to know enough to do what I want to do.
Random characters. I don't have too many base models and so, for a project I'm doing where I need "lots" of people, I want to get bang for my buck. As such, I've created a little script to randomize various sliders. Works fine and dandy by explicitly stating which morphs to change. I'm not 100% happy however in how the faces are coming out. So I've come up with a better idea which seems to work and look better when I've done it by hand ..
And that's by blending a number of the head morphs of my current characters to form a brand new character. So I want to do this via script to randomly pick 4 heads and then apply a 15% to 50% modifier to each so they blend into one.
What I want therefore and can't see much in the way of documentation to help me out - is to collect a list of the head morphs under Genesis 8 Female (ie, Victoria 8 Head, Charlotte 8 Head, Stephanie 8 Head), for instance, that I currently have within Daz and stick them in an array and then do my stuff. I just can't work out HOW to automatically pull in the Head Morph list (filtering what I want is fine it's just the basic "put the head morphs you've got into an array" bit that I can't seem to find an answer for).
It's probably easy - but programming wise, I've never messed around with the likes of java or other scripting languages and whatnot so not too up to speed on how it all works and fits together. Generally code in other stuff ...
Cheers in advance for any help
Comments
This is something I hacked together recently. It probably has big nasty bugs! You have been warned!
DS script is a cosuin to JavaScript, rather than Java.
There are a couple of sampel scripts that should help you towards your goal:
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/node_properties/start
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/node_property_presentations/start
Cheers guys - they are the type of things I've been looking round for but not been able to come across. Anyway, after my OP I decided to have another crack at it. Came across a script someone had wrote - I didn't really know what it was doing or even meant to be doing and and so I basically just de-constructed it .. Print statements all over checking what everything is doing .. luckily - I think he'd used some elements of the scripts you linked to Richard and I managed to work out what bits I needed, canabilised them and .. well, all sorted now .. Again, cheers!
If the script you found was derived from one of rob's samples it should have had a link back to the sample - that's a requirement of the license - which would have made it easier for you to find the full sample - which is a major part the reason for the license terms used.
Redacted