does anyone know why

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  01 January 2013
does anyone know why

if this is evaluated from the listener or is in a script

(normalize (random [-1.0,-1.0,-1.0] [1.0,1.0,1.0])


the parser fails to notice the syntax error and the script needs to be interrupted with the escape key ?

Last edited by Klunk : 01 January 2013 at 12:32 PM.
 
  01 January 2013
it is expecting you to finish the expression on the next line. if you type ) and press enter your expression will execute.
 
  01 January 2013
oh i see, it thinks it's sees a code block separator not "precedent" brackets thats why most other languages use a separate tokens for code blocks. Though when in a script you would think it would report some kind of error (as there is a token mismatch) instead of just sitting there doing nothing
 
  01 January 2013
Originally Posted by claude666: oh i see, it thinks it's sees a code block separator not "precedent" brackets thats why most other languages use a separate tokens for code blocks. Though when in a script you would think it would report some kind of error (as there is a token mismatch) instead of just sitting there doing nothing

this behavior of mxs execution in listener was designed in purpose. max has two listeners. the second is one-line. so only this behavior allows user to type multi-line code. long long ago the user had only one and small screen display... you get what i mean, do you?
 
  01 January 2013
for the same reason mxs supports ";" code separation.
 
  01 January 2013
thats funny because I've got max versions going back to 1.2 in the office and I can't ever remember needing to work like that
 
  01 January 2013
Originally Posted by claude666: thats funny because I've got max versions going back to 1.2 in the office and I can't ever remember needing to work like that

because it was designed it doesn't automatically mean it was used.
btw i've never worked with the one-line listener. the main reason why was not is that the listener is placed on left side of the editor. that was very bad solution. not only me but many users feel uncomfortable with that.
for example one-line editor in maya i use all the time.
 
  01 January 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:24 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.