@Aukecomps: sorry, but I still don't get you... (maybe my english is too bad).
so you know the proportion of the object (in x y z difference to the camera),
Yes, I know the proportions: it is for example (just an example) 10 on 1 for the Width/Height ratio. But it has nothing to do with 3D coordinates because it is a 2D shape (I cannot make it 3D because for example if the camera rotates, the bar will not face the camera anymore). And I don't see what you mean by x y z difference to the camera.
keep those proportions the same, but set one (or more) positions (x OR y OR z) different so that the absolute distance to the camera object becomes the constant distance you wish
Hum, welll

.. Errr in fact I'm lost here (I simply don't understand at a language point of view, not for the math that are beyond this).
But ok, maybe I've found a solution: first, take a point (in 3D coordinates) above the center of the node (that's easy). Then convert this point in 2d coordinates. For this part, I have absolutely no idea how to do it. Does anybody know how to convert a 3D coordinate into a 2D point ? (This conversion should be possible directly, as opposed to the one in the other way).
Then, with this point, I know the center of my rectangle. I need then to calculate the distance between my node and the camera (easy) and apply a factor depending of this distance to the length and width of my bar (I think this can be found by trying several factors).
Do you think this is a good way to go ? And so, how to convert 3D coordinates into 2D screen coordinate ?
Thanks