what part isn’t working? I generally make a small script that illustrates that I’m doing it right, then expand it from there.
I use post() statements to print out my scripts progress to the Max window….if things aren’t working, you can see how far the script has progressed before you run into a problem.
One issue with this method: if the error is in a nested function, it won’t print out as expected. It is easy enough to create a debug function that can easily be turned off when your not using it:
var debug = 1;
if(var debug == 1)
and then call that function just like you would a post statement:
debug(‘got to this point in the script’);
Of course this only works with strings. You’d have to build something more elegant to deal with mixed messages(i.e. arrays).
Hope this helps.
Log in to reply
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.