Reputation: 17924
Is it possible to have Psychopy's MovieStim
play only a certain spatial percentage of a movie file?
I would like to be able to show 0-25% of the x-size of a stimulus, then 25-41% etc. It is not feasible for me to manually crop the videos, because I need to control the crop coordinates at runtime.
I am currently using this code, and I was hoping to get the effect I want with the MovieStim.size
attribute somehow, but that invariably controls the size of the entire movie.
Upvotes: 0
Views: 157
Reputation: 17924
This can be accomplished via an Apperture object:
aperture = visual.Aperture(win, size=0.2, pos=(0, 0), ori=0, nVert=120, shape='square', inverted=False, units="norm", name=None, autoLog=None)
This can be added at any point in the code before the stimulus is drawn.
Upvotes: 0