How to "getMaterial" on Spatial? [Solved]

I’ve made a simple model in blender, imported to a .j3o and I’m loading it using this:

assetManager.loadModel("Models/testHouse01.j3o");

There’s no .getMaterial() on this, how wold I best get the material? (I need to modify a material parameter)

You cast the Spatial to Geometry (if it is a Geometry).

Yeah, I used to be able to, but this one is a scene node.

http://wiki.jmonkeyengine.org/doku.php/jme3:scenegraph_for_dummies

I was able to fix this by exporting a .obj from blender (with only the mesh exported).

Fix you inability to understand the scenegraph? ^^