get map properties

Please tell me, how to get map properties in order to receive such data:

meditMaterials[1].texmap_diffuse.bitmaptex

I have allready the map found-let's say: mymap

I will need to use meditMaterials[1].texmap_diffuse.bitmaptex.ViewImage(), to
"view image" inside bitmap parameters in mat editor