Looks like I can't call the value of the matrix in 'on_pre'

The method mentioned here will likely be useful for you: