inspecting the order of outputs from js outlets

Aug 3, 2012 at 7:09pm

inspecting the order of outputs from js outlets

I have a js which I suspect is causing problems by outputting in the wrong order.

1) Is the order of output in js outlet statements affected by presence or absence of semicolons, or is it determined completely by the order of the statements in the code?

2) How can I inspect the order of outputs from a js object’s outlets, or from the outlets of any object for that matter?

Many thanks in advance

Joe

#63839
Aug 5, 2012 at 9:04pm

print? or post inside the js??

#230222
Aug 6, 2012 at 9:34am

MIB’s suggestion is SOP for your second question. As to your first, if you are taking advantage of Javascript’s somewhat ad hoc approach to parsing code by not explicitly using a semicolon as a statement delimiter… I do not believe it will make a difference to execution order, but I would check a JS reference before laying my hand in fire about this.

Note that if you want a JS object to output in right-to-left order, you do have to write the outlet calls in that order. Sometimes R2L seems so ingrained in Max that a person might think it happens automatically, but it’s really all up to the object to make it happen.

#230223

You must be logged in to reply to this topic.