Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bob.schultz
in reply to: Anonymous

You can force X & Y on every block by modifying the xOutput and yOutput definitions at the top of the program to look like this.

// <<< ADD 'force:true'
var xOutput = createVariable({prefix:"X", force:true}, xyzFormat);
var yOutput = createVariable({prefix:"Y", force:true}, xyzFormat);

This may give you duplicate points in the output that you do not want.  You can disable duplicate points from being output by adding the following lines to the top of the onRapid and onLinear functions.

function onRapid(_x, _y, _z) { // MODIFY onLinear ALSO
  // don't output duplicate points
  var currentPosition = getCurrentPosition();
  if ((xyzFormat.getResultingValue(_x - currentPosition.x) == 0) && (xyzFormat.getResultingValue(_y - currentPosition.y) == 0)) { // ignore zero length lines
    return;
  }

 



Bob Schultz
Sr. Post Processor Developer