Get DynamicMaterialInstance from Mesh?

Is there anything that’s different from this?

This prints 1.25 for me which I set in the material:

228724-capture2.png