Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Python scripts not running

TNOTNO
edited January 2016 in OpenSesame

Hello, i've got the following problem:
When setting up a opensesame project, the "run" code of a python script is never executed. When placing the script inside a loop neither the "prepare" and the "run" parts of the scripts are executed.

Why does it behaves like this?

Comments

  • edited 2:56PM

    Hi,

    There may be something wrong with the run-if setting of your inline_script item. Could you verify that it is set to 'run always'? (And you probably want to place the script in a sequence and place that sequence in a loop, rather than directly placing your script in a loop. Have a look at one of the tutorials if this is unclear to you).

    Cheers,

    Josh

  • TNOTNO
    edited 2:56PM

    Script is set to 'always' and is located under an sequence which is under the loop. I tested with 1) a new experiment 2) another computer 3) inside and outside a loop. With condition number 3) the behavior is different.

  • TNOTNO
    edited 2:56PM

    Problem is solved. Python code was running but a change of a member in var was not displayed in the sketch.

Sign In or Register to comment.