Recovering unsaved random condition

Hello everyone. I recently ran an experiment with a 2x2 factorial design. However, I forgot to have psychopy save the conditions as columns in the .csv output. The way the conditions were assigned was via a code object in the builder mode (Begin Experiment option):

onezero = [0,1]

rankyn = random.sample(onezero, 1)
rankyn = rankyn[0]

stakesyn = random.sample(onezero, 1)
stakesyn = stakesyn[0]

I tried using the .psydat output, but it wasn’t logged there. I’ve also been trying to find it in the .log file, but I haven’t had any luck there either.

Does anyone know of a way to recover these conditions/objects?

Edit: These variables are later referenced to choose the opacity of certain text objects, with opacity set to “each repeat.”

I’ve done this before and haven’t found a way to recover unsaved variables. Is there any way you can guess the condition based on participant responses? It’s also possible that the contents of text components, etc. will appear in the log files. What do rankyn and stakesyn mean in the context of your experiment?

I have them set as the opacity for text stimuli. I was hoping that, since the text position gets saved in the log, the opacity would too. However, I haven’t been able to find such a field in the log file.

Edit: the opacity for the text objects are referenced at the start of the logs but not throughout. Of the 20 I’ve looked at, all of them have 1.0 for both, but maybe I’m getting unlucky. Notably, the opacity is 1.0 for the text objects relevant to the conditions, but just 1 for the other text objects.