Is it possible to execute Fill Sellected without displaying the dialog box (silently)? I also need to set the value using the script. Is it possible? Fill Sellected is in the Node Weight Map Brush tool.
I tested this script but it displays the dialog box and I do not know how to set the weight value using the script. It goes through the silent path but the dialog box is displayed. Any advice?
var oMgr = MainWindow.getActionMgr();
var oSettings = { "RunSilent" : true };
var oActionFill = oMgr.findAction("DzWeightMapBrushFillAction");
if( oActionFill ){
if( typeof( oActionFill.triggerWithSettings ) == "function" && oSettings ){
print("Run silent");
oActionFill.triggerWithSettings( oSettings );
}
else oActionFill.trigger();
}