# MWorks Draft for Monkey Hexagonal Grid Task

**URL:** <https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106>\
**Category:** Support\
**Created:** [July 25, 2025, 5:46pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106 "2025-07-25T17:46:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [July 25, 2025, 5:46pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/1 "2025-07-25T17:46:49Z")

</div>

Hi Chris,

I hope you’re doing well. My name is Kanishka Mitra, and I recently joined Mehrdad Jazayeri’s lab as a new graduate student. I’ve not previously worked with MWorks and could use some guidance to get started.

Mehrdad and I have designed a specific monkey task, and I’ve been informed that you’re experienced with MWorks and could help create an initial draft and backbone for this task. I’ve prepared a detailed description of the task and attached a PowerPoint presentation as a visual aid:

## Hexagonal Grid Interaction Task

### Project Overview:

We are developing an experimental task for rhesus macaques involving interaction with a dynamically adjustable hexagonal grid displayed on a screen. The monkey’s interaction will initially be simulated through mouse clicks. This software forms the backbone of our research experiment, and future phases will integrate motion-capture (hand-tracking) and eye-tracking systems.

### Detailed Task Description:

1. Hexagonal Grid Structure:

2. Pattern Management:

3. Trial Structure: Each trial should follow these phases clearly:

4. Pattern Randomization:

5. Future Considerations:

Please let me know if you’re available to help with this and if you have any questions or need further clarification. I’d greatly appreciate your support and expertise!

Thank you very much in advance.

Best,  
Kanishka

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 28, 2025, 5:46pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/2 "2025-07-28T17:46:06Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 28, 2025, 5:46pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/3 "2025-07-28T17:46:06Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 28, 2025, 5:56pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/4 "2025-07-28T17:56:01Z")

</div>

Hi Kanishka,

Thank you for the detailed description of your task. I will try to get an initial implementation of it to you sometime in the next two weeks.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [July 28, 2025, 5:57pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/5 "2025-07-28T17:57:53Z")

</div>

Sounds great! Thanks for your help!

Best,  
Kanishka

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [August 8, 2025, 2:09pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/6 "2025-08-08T14:09:56Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [August 8, 2025, 2:18pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/7 "2025-08-08T14:18:30Z")

</div>

Hi Kanishka,

Quick update: I’m making progress on this, but I won’t be able to finish it this week. I’m going to be away on vacation next week, so hopefully I’ll be able to get it to you the week of Aug. 18.

Also, a few questions:

1. Does the order in which the monkey clicks the hexagons matter, or is any order OK, so long as all the colored hexagons are clicked?
2. When you say each clicked hexagon “should fade from its colored state back to white”, do you mean you want a literal fade (extended in time), or can the color transition be instantaneous? An extended fade is possible but more difficult to implement.

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [August 8, 2025, 4:09pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/8 "2025-08-08T16:09:00Z")

</div>

Hi Chris,

No worries - the week of the 18th works for me.

Here are the answers to your questions:

1. Yes, any order is fine.

2. That is a good point, I think the fading is irrelevant. So, let’s have it instantaneous.

Best,  
Kanishka

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [August 20, 2025, 2:06pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/9 "2025-08-20T14:06:00Z")

</div>

Hi Kanishka,

I’ve attached a first draft of the hexagonal grid task. To run it, unzip the archive, then load `task.mwel` in MWorks.

The experiment uses Python code to generate and select the patterns. At present, the patterns are random, but you can change the code to work any way you like.

The active touch area for each hexagon is just the circle it inscribes, because that was easy to implement. If you want the entire hexagon to be touch sensitive, you’ll need to modify the macro `touch_on_hexagon`.

When you have a chance, please try this out, and let me know if you have any questions.

Cheers,  
Chris  
[hexagonal\_grid\_task.zip](https://mworks.discourse.group/uploads/short-url/raYg1bgr4bmM7jznIKBc0CpeFO4.zip) (76.4 KB)

---

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [August 22, 2025, 4:12am UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/10 "2025-08-22T04:12:27Z")

</div>

Hi Chris,

Thank you so much! I have been traveling back at home, so I’m going to test this out tomorrow and let you know how it goes.

Best,  
Kanishka

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [August 25, 2026, 3:07pm UTC](https://mworks.discourse.group/t/mworks-draft-for-monkey-hexagonal-grid-task/1106/11 "2026-08-25T15:07:32Z")

</div>


