3 May 2019, 21:09

Hi @imkael !
I regularly use something similar (if I get your question right): ie store all defaults for parameters for re-use (https://github.com/PiRo-bots/kiwikee/blob/master/cad/kiwikee/index.js#L14), however I am not sure it would work for the old 'include' syntax: but you can get it working trivially using the 'require' module syntax (available in the V2 prototype, CLI & the desktop app):

in a file called 'parameterDefaults.js' (or whatever you want to call it)

const paramDefaults = {
  quality: 120,
  robotName: 'SMARS',
}

module.exports = paramDefaults

and then you can simply require that module as you need it:

const paramDefaults = require('./parameterDefaults.js')
//code that uses those values elsewhere

hope this helps !