Silent DzWeightMapBrushFillAction - Fill Selected Vertices

Michal P.Michal P. Posts: 93

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();
}

 

Post edited by Michal P. on

Comments

  • Richard HaseltineRichard Haseltine Posts: 102,701

    Whether or not an action supports Run Silent depends on how its owner is written - it isn't automatic. I am told that in this case RunSilent is not supported.

  • Richard Haseltine said:

    Whether or not an action supports Run Silent depends on how its owner is written - it isn't automatic. I am told that in this case RunSilent is not supported.

    Thank you Richard. 

Sign In or Register to comment.