Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Set position of shape in a list?
Set position of shape in a list?
Post Reply
Like
18
Set position of shape in a list?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
nashby
nashby
posted 11 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 78,
Visits: 159
I am trying to design a simple change detection task where a flash say what quadrant participants need to remember items from and then random colored boxes (with no repetition) are flashed in that quadrant of the screen and then return (sometimes the same colored boxes, sometimes different). I am having a hard time trying to define where the positions of the boxes are. So far I have this which creates a list with the random colored boxes and then adds them into the memory and test trials, but I cannot seem to define the locations of the list items which is important as I need to say for instance that the first two items in the list show up in locations X1 and X2, while the next items show up in a different quadrant.
I have tried things like this:
shape.list.cb1.item.1.hposition =
list.cb1.item.1.hposition =
but these do not work. Getting quite frustrated as I cannot find any documentation or examples to help with this (been stuck on it about a week now).
Any help would be greatly appreciated.
<trial Set1>
/ trialduration = 500
/ ontrialbegin = [trial.set1.clearstimulusframes()]
/ ontrialbegin = [trial.set1.insertstimulusframe(shape.FlashUR, 1)]
/ ontrialbegin = [trial.memory.clearstimulusframes()]
/ ontrialbegin = [list.cb1.clearitems()]
/ ontrialbegin = [list.cb1.insertitem(counter.colorboxes.selectedvalue, 1); list.cb1.insertitem(counter.colorboxes.selectedvalue, 2); list.cb1.insertitem(counter.colorboxes.selectedvalue, 3);]
/ ontrialbegin = [{trial.memory.insertstimulusframe(list.cb1.items.1, 1); trial.Memory.insertstimulusframe(list.cb1.items.2, 2);}]
/ ontrialbegin = [{trial.test.insertstimulusframe(list.cb1.items.1, 1); trial.test.insertstimulusframe(list.cb1.items.2, 2);}]
</trial>
Reply
Like
18
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Set position of shape in a list?
nashby
-
11 Years Ago
> I have tried things like this: >...
Dave
-
11 Years Ago
Hey Dave thanks for the response. I know how to define a shape...
nashby
-
11 Years Ago
I have also tried this which doesnt break the code but doesnt set the...
nashby
-
11 Years Ago
I'm pretty sure there is a way to do this, however, the few code...
Dave
-
11 Years Ago
As a starting point, consider the below minimal example. Suppose you...
Dave
-
11 Years Ago
But how do I then get the same items to show in the same locations in...
nashby
-
11 Years Ago
> But how do I then get the same items to show in the same...
Dave
-
11 Years Ago
Here is the experiment I am trying to program (...
nashby
-
11 Years Ago
Ok I get the storing but what a lot of work for what should be really...
nashby
-
11 Years Ago
> Ok I get the storing but what a lot of work for what should be...
Dave
-
11 Years Ago
I guess its just more work than any other programming language I have...
nashby
-
11 Years Ago
> I have 4 quadrants of the screen. I need 2 colored boxes to go to...
Dave
-
11 Years Ago
Ok I think I get what you are saying. Define colors and locations to...
nashby
-
11 Years Ago
Alright so I have gotten the code to work, almost (and I am sure it...
nashby
-
11 Years Ago
> The problem is that the code below sometimes presents items on...
Dave
-
11 Years Ago
Thanks that worked.
nashby
-
11 Years Ago
Post Reply
Like
18
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search