Idle Gestures and Head Movement
Hey there - although a coder by trade, I've not yet done any scripting in Daz (beyond modifying a freebie script I came across somewhere) and am certainly not familiar with the various calls within Daz.
But, I have a project in mind .. and am curious from those with more experience as to whether what I want to do is a) Feasible and b) Simple enough that a newbie to Daz scripting can do ..
Whay I'm looking to do is apply random idle head movements and gestures to a Genesis 8 character on the time line .. so that when the animation is executed, the character just appears to be randomly looking to their left, down, right, up .. their eyes might move up or down, left or right .. they might smile on occasion .. slightly open their mouth .. and of course, blink ..
I remember the old Mimic Live used to apply these micro gestures when talking and that's what I'm looking to do ..
Am looking for a script to do this as I won't be just doing it to one model - but many - and doing it by hand for each would no doubt become tiresome after a while ..
So as I mentioned .. A) Feasible? and B) Something "simple" for a Daz Scripting newbie to get to grips with???
Thanks
Comments
I have made a product Expression Randomizer which produces expressions by randomising the rotations of the facial bones, and RiverSoftArt has made a couple of Pose Randomizers as well as an Expression Mixer which randomises the expression morphs contained in the user's content library. My product makes no express provision for animation, I don't know about RiverSoftArt's since I don't have those products.
Yes, feasible. You'd get the selection from the Scene object, then using DzNode the bones (by name or label - findNodechild() etc. - if you are wanting to target particular bones), then also in DzNode you can use the various getAxisRotControl() functions to get the parameters and use their setValue() methods 9which include versions that allow time to be specified) to apply the motions. I'd think that aspect would be pretty simple to write, and uses documented features, so the main issue would be the more generic scripting of the idel activity itself.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/scene_dz
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/node_dz
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/floatproperty_dz