Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

GetPos/SetPos for HUD prims?

Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-07-2006 16:31
Is there any way to get / set the position of primitives attached in the HUD? I mean, they have scale and rotation vectors, and they do remember their position once placed. Is there any way to move them and find out where they are?

Thanks!
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-07-2006 16:45
OK, scratch the setpos part of the question. Apparently, it works to set the position of the HUD prims (as I see in the HUD Calc script), but GetPos still returns my avatar's current world coordinate position. Is there an alternate function or setting for getting the position of a HUD prim?
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
04-07-2006 16:45
If you use llSetPos in the root prim of a HUD, it will change the position of the whole HUD. If you use llSetPos in the child prims it moves just that prim relative to the root prim.
_____________________
imakehuddles.com/wordpress/
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
04-07-2006 16:46
From: Talarus Luan
OK, scratch the setpos part of the question. Apparently, it works to set the position of the HUD prims (as I see in the HUD Calc script), but GetPos still returns my avatar's current world coordinate position. Is there an alternate function or setting for getting the position of a HUD prim?

llGetLocalPos
_____________________
imakehuddles.com/wordpress/
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-07-2006 17:11
Ahh, there we go. Thank you kindly. :)

The Wiki said it was the same as GetPos if it was not a child prim, but I forgot that, when attached, it kinda is a child prim to the avatar, or so I suppose.

Nevertheless, it works now.

Thanks again.