Thanks for inviting us to the forum! I am sharing a small MonkeyLogic hack that helped the Maier Lab (Vanderbilt) get more utility out of the gen condition function.
Our goal was to generate stimuli dynamically trial-by-trial (for example, a new random dot matrix with dimensions specified in dva). We found that we needed the gen function to have access to info the monkey's visual display. In monkeylogic, info about the monkey's visual display is stored in a variable called "ScreenInfo". As gen functions take "TrialRecord" as an input, we simply added "ScreenInfo" as a field of "TrialRecord". The change is a follows:
In the monkeylogic function around line 526, add the following line: TrialRecord.ScreenInfo = ScreenInfo;
-Michele Cox (firstname.lastname@example.org)