Staircase using rotation/orientation


Author
Message
yjung541
yjung541
Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)Associate Member (100 reputation)
Group: Forum Members
Posts: 6, Visits: 30
Hi!

I want to run a study to measure orientation sensitivity, and I'm currently trying to trig the staircase demo to make this study.
The demo used color as a feature and update the color information like the below:

<shape target>
/ shape = triangle
/ color = (0, 135, 10)
/ size = (30%*2/4, 30%)
/ position = (70%, 50%)
/ rotation = 0
</shape>
...
<trial staircase_down>
/ontrialbegin = [
    values.staircase = 1;
    if (values.direction_down == 1) {
        values.targetvalue_down -= values.change_down;
    } else {
        values.targetvalue_down += values.change_down;
    };
    shape.target.colorred = values.targetvalue_down;
]

But when I changed it to the rotation like the below;
shape.target.rotation = values.targetvalue_down;

The rotation of the shape doesn't change even though the targetvalue_down value itself is changing every trial.
I tried a similar twig using the width, then it is working fine - width changes accordingly every trial. Any ideas on what is happening here?
I can also post the entire script if it is helpful.

Thank you!
Yaelan
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
yjung541 - 5 Years Ago
Dave - 5 Years Ago
yjung541 - 5 Years Ago
Dave - 5 Years Ago
yjung541 - 5 Years Ago
                         And, it is working! thank you! :)
yjung541 - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search