Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1067

Silent DzWeightMapBrushFillAction - Fill Selected Vertices

$
0
0

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

 


Viewing all articles
Browse latest Browse all 1067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>