thx
I’ve done it. Im using this code to keep the image the size I want
def setSizeInPixels(self, nodePath, numPixels, task):
'''Sets the minimap in pixels'''
props = base.win.getProperties()
height = float(props.getYSize())
width = float(props.getXSize())
hScale = (1/height)
wScale = (1/width)
pixelNode = NodePath("Pixel Node")
pixelNode.setScale(wScale,1,hScale)
nodePath.setScale(pixelNode, numPixels)
pixelNode.removeNode()
alignTo(self.root, base.a2dTopRight,UR,O)
return task.cont
alingTo can be found here [url]DirectGUI or nodepath alignment]