Mnova properties scripts |
NMRSpectrum.getProperty/setProperty Arguments You will find in the Mnova installation folder ('documents/scripts') the spectrum properties (aParamName) that you can manage via script, by using the functions 'SetProperty’ and 'GetProperty'. You will find an example script in the examples/scripts installation directory and also in the 'Script Samples' chapter. All of these properties can also be selected by using the GUI:
You will find below an example of a script to change some properties of your spectra. In this case, the colour of the spectrum will be changed to red, the peaks font to Arial and the integral curves will be showed.
function properties() { var spec = new NMRSpectrum(nmr.activeSpectrum());
spec.setProperty("curve.color","red"); spec.setProperty("peaks.font","Arial"); spec.setProperty("integrals.curve.show", true); spec.update(); mainWindow.activeWindow().update();
}
NOTE: For further information about the scripting documentation, please check the Mnova installation folder at: C:\Program Files\Mestrelab Research S.L\MestReNova\documents\scripts |