This might be a stoopid question, but how can I print to the Log or Messages console from a script?
The regular print('Hello World') doesn't seem to work...
Cheers.
Eric.
EricWest
Comments
EricWest
-
Answering my own question here... :-)
The current workaround is to have a dedicated output on the script node, connected to a Log Node like so
Supplemented by a short function in the script which then serves as a 'debug print':
function dPrint(str) outInfo = str outPrint = true end
Speaking of which, it would be cool if the Log Node could feature an 'Print On Change' option similar to e.g. the 'Set Pin' Nodes. Meaning, it Logs automagically when the input changes, rather than logging periodically, as it happens now with the 'Auto Print'.
Eifert@Aximmetry
-
Hi Eric,
Sadly there is no print option within Lua inside Aximmetry, you should use the log module as you do instead.
We added your Log module request to our request list and we will consider adding it in future releases.
An error occurred while uploading, please try again.
Cookie consent
Our website uses cookies to give you the best online experience, also we use other technologies to improve
and analyze our website traffic, and to understand where our visitors are coming from.
Answering my own question here... :-)
The current workaround is to have a dedicated output on the script node, connected to a Log Node like so
Supplemented by a short function in the script which then serves as a 'debug print':
function dPrint(str)
outInfo = str
outPrint = true
end
Speaking of which, it would be cool if the Log Node could feature an 'Print On Change' option similar to e.g. the 'Set Pin' Nodes.
Meaning, it Logs automagically when the input changes, rather than logging periodically, as it happens now with the 'Auto Print'.