DirectGUI absolute positioning?

Is it possible to set DirectGUI object positions and positions of the object’s elements relative to render2d/aspect2d?

With NodePaths it’s np.setPos(render, x, y, z), but here you often set positions in the constructor.

directgui elements are nodepathes too. so you can simply do yourDirectGui.setPos(render2d,x,y,z)

how about in the constructor? :confused:

I don’t think it works in the constructor, though you could try: pos = (render2d, x, y, z).

David

It actually does, cool :slight_smile: