Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Avatar parts positions?

Serenity Galli
Registered User
Join date: 25 Dec 2007
Posts: 15
12-25-2007 05:45
I would like to build a script that would display the x,y,z position (like the numbers in QVAnimator) or avatar body parts.

For example, clicking an attachment while sitting would generate the following:

Hips - 0,0,29
Neck - 0,0,0

any ideas if this is possible?
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
12-25-2007 07:51
Not without manually positioning un-attached prims and comparing their locations to that of the avatar.

Attachment locations depend on the shape and current pose of the avatar (which also determine attachment orientations, which I believe is the Quavimator-like data you're trying to determine). LSL doesn't have access to avatar shape parameters, and poses are defined by animations, which run client-side only, while scripts run server-side only. Scripted attachments can only access the position and orientation of the avatar itself (or rather, the agent), not any of it's specific skeletal elements.