post()

May 17, 2012 at 3:07pm

post()

Hi, is there anyway I can change the post() output from “js” to a user-provided string, much like is possible with MAX print?

thx. Lee

#63649
May 21, 2012 at 12:02pm

Also, how do I get post() to have a red-background( i.e. error message)

thx

#229439
May 21, 2012 at 5:46pm

Hi,

Nope * 2

For question 1, obviously you can add anything you like to a post() call

Cheers

-A

#229440
May 21, 2012 at 6:32pm

cheers

#229441
Jun 13, 2012 at 10:53am

Here is an example of using the error command instead of the post one.

– Pasted Max Patch, click to expand. –

var redisdead = 0;
declareattribute(“redisdead”);

function setTheString()
{
if (redisdead)
error(arrayfromargs(arguments), “n”);
else
post(arrayfromargs(arguments), “n”);
}

#229442

You must be logged in to reply to this topic.