How to preview animations with calculations

I am creating an animation blueprint, and it involves some calculations using dimensions from the skeleton. Currently, these are obtained by casting to a blueprint class I have created and accessing its skeletal mesh. Is there any way to access the skeletal mesh directly? I ask because in preview, the ‘Try Get Pawn Owner’ node returns ‘None’, so the cast fails, and my logic is not executed.