I'm trying to automate Decimate to retopo but if the user selects a polycount larger than 50k, a dialogue appears that I can't seem to skip without skipping the decimation slider dialog. is there a way to get the SetModalDialogCallback to effect this dialog?
This is the modal dialog I want to keep:
this is the one I want to skip if it comes up:
these are the commands I'd using. The scripting documentation doesn't mention this sub modal dialog. any pointers on how to skip it would be appreciated.
// SetModalDialogCallback("ModalDialogCallbackOverDecimation");
cmd("$DecimateToRetopo");
// RemoveModalDialogCallbacks();
fyi: Honestly I'd rather skip both of these dialogs and use a custom window with a numeric entry field to specify a target polycount, but when I did this, it only works on low poly vox layers. when the incoming mesh count is too high, the ReductionPercent slider float precision is too low and it fails out.
void ModalDialogCallbackDecimateToTargetPolyCount(){
if(TargetReductionPercent<99.999)
{
SetSliderValue("$DecimationParams::ReductionPercent",TargetReductionPercent);
}else
{
SetSliderValue("$DecimationParams::ReductionPercent",99.9);
}
cmd("$DialogButton#1");/*press Ok*/
}
void ModalDialogCallbackSaveSession(){
cmd("$DialogButton#1");/*press Ok*/
}