Possible to stop OpenSesame "tidying" my script?
in OpenSesame
Hi everyone,
I was just wondering if there is a way to prevent the script editor from rearranging my script (OpenSesame script, not the inline script, which seems to leave things as they were found)?
In particular I would like to be able to have multiple line breaks between sections of code, with a commented line at the top of each section, explaining, for example, what part of a sketchpad the following code corresponds to, and how I've variably-defined certain values. When I do this, all the comments get moved to the top and all the blocks of code get "squished" together.
Thanks!
-Jonathan

Comments
Sorry, I'm not sure if the above was clear. Just in case, here's an example...
I start with this...~~~~
which gets corrected to this...
Hi Jonathan,
No, you cannot prevent OpenSesame from doing this. Essentially, OpenSesame parses the script to see if it's ok, and then regenerates it. And the regenerated script may differ slightly from the original script.
For example, if you add unnecessary (but harmless) quotes to a number:
OpenSesame will remove them:
In principle, what you're doing now is fine. But it's getting very close to full-fledged coding, which OpenSesame script isn't really optimal for. Why not just use Python?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hmmm. Perhaps I will! Thanks for the explanation, Sebastiaan!
Cheers,
-Jonathan