Control the tiggered dialog using script (get dialog manager)
Xiaojing
Posts: 14
Hi, I am facing a problem. I fit Hair node to Genesis8Female node using script, but it tiggered a Auto-Fit dialog.
var oHair = Scene.findNodeByLabel(sHairLabel)var oProp = oHair.findProperty("Fit to")oProp.setValue(oPeople)
So I want to use script to accept the dialog. Is there a function to get dialog manager?
Thank you for help!
Comments
I don't think that will work - the dialogue is modal and locks the script until it closes. Though the results won't be good if the figure is wrong you might want to see if the dialogue pops up with
oHair.setFollowTarget( oPeople );
Thank you for your reply!
I try the code oHair.setFollowTarget(oPeople), but It still tiggers the dialogue.
Currently I can only match the Genesis8Female hair to the Genesis8Female people. The same version will not pop up the dialog
You may, then, need to add to the the compatibilities - DzAsset has the method for that http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/asset_dz