Rotating images

53 views
Skip to first unread message

Amy

unread,
May 14, 2013, 9:35:07 AM5/14/13
to psychop...@googlegroups.com
I'm wondering if anyone has experience of rotating images in the Builder?

I am trying to design a task with a spinning wheel. I have read the documentation http://www.psychopy.org/builder/components/patch.html although I can't find the patch stim component in the builder! so I'm struggling to get started.

Any help would be much appreciated

Jonathan Peirce

unread,
May 14, 2013, 9:38:37 AM5/14/13
to psychop...@googlegroups.com
The Patch stimulus has been separated into a Grating and an Image
stimulus that cover the same functionality. Both the Image and Grating
(and nearly all other stimuli) have a parameter `orientation` and if you
set that to change every frame you can generate a rotating stimulus.

best wishes,
Jon
> --
> You received this message because you are subscribed to the Google
> Groups "psychopy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to psychopy-user...@googlegroups.com.
> To post to this group, send email to psychop...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/psychopy-users/4e6046fb-973f-40b2-b31e-c1edbabfa89e%40googlegroups.com?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk/

Amy

unread,
May 14, 2013, 9:47:41 AM5/14/13
to psychop...@googlegroups.com
Great - thank you for your fast reply.

So if i have a list of images in an experiment and each one should spin (when some key is pressed) then I set the Ori to change every frame for

$imageFile2

So what kind of code would I add to each frame in order to control the number of spins or degrees spun?

Thank you in advance

Jonathan Peirce

unread,
May 14, 2013, 9:50:16 AM5/14/13
to psychop...@googlegroups.com
All builder scripts have a variable called t that represents time from start of the routine. You could set your orientation to be
    $t*5
After one second your orientation will be 5 deg, after 2 s it will be 10deg etc...
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Amy Bland

unread,
May 14, 2013, 10:26:15 AM5/14/13
to psychop...@googlegroups.com
That worked great! Is there a way to make the onset of the stimulus (and thus spinning) dependent on a particular mouse or key press?



You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/zJoSNn_r8Vc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.

To post to this group, send email to psychop...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages