how do I use a script to position a prim below ground?
|
|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
04-28-2006 09:06
It's a simple question but one of those thing that has me stumped and I can't figure out where to look for an answer. I have a script that is moving prims. That's easy. But whenever I try to move a prim that is more than half way buried underground, the center point snaps to the surface.
|
|
Leonard Churchill
Just a Horse
Join date: 19 Oct 2005
Posts: 59
|
04-28-2006 09:35
If you're using llSetPos... from http://secondlife.com/badgeo/wakka.php?wakka=llSetPos"Can never move an object below the ground; the object will be placed with its center at ground height."
_____________________
"Give me a fish and I eat for a day. Teach me to fish and I eat for a lifetime." - Chinese Proverb Always check the Wiki and/or Script Library
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-28-2006 09:38
Can't it move a phantom prim below ground though? Or did I dream that?
|
|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
04-28-2006 09:46
From: Ordinal Malaprop Can't it move a phantom prim below ground though? Or did I dream that? Thanks for that, just tried it, didn't work Well poo. That sux. Makes sense because you don't want some script burying prims that can't be retrieved. But LSL limitations while making sense can still often suck. Ah well, at least that takes that problem from the status of known bug to known limitation.  Thanks
|
|
Burnman Bedlam
Business Person
Join date: 28 Jan 2006
Posts: 1,080
|
04-28-2006 10:08
From: bafilius Goff Thanks for that, just tried it, didn't work Well poo. That sux. Makes sense because you don't want some script burying prims that can't be retrieved. But LSL limitations while making sense can still often suck. Ah well, at least that takes that problem from the status of known bug to known limitation. Thanks It is actually possible to place prims underground... however... I don't exactly know why you would want to. If you place an object comprised of multiple prims, and the center of the object is far enough above the center of a child prim, you can move the child prim into the ground. If you wish only that prim to remain there... simply unlink the object's prims, and delete the unwanted parts. At that point, you have placed a prim underground. You may need to recompile any scripts in the prim, which can be done by opening the build window, selecting "edit" and left clicking the ground over the prim and dragging the mouse to get the select box to detect the prim underground. Once it is selected, you can then go to Tools --> Recompile. I discovered this when a linkset I placed unlinked itself for some reason and had to actually *dig* up the remaining prims. 
_____________________
Burnman Bedlam http://theburnman.com Not happy about Linden Labs purchase of XStreet (formerly SLX) and OnRez. Will this mean LL will ban resident run online shoping outlets in favor of their own?
|
|
bafilius Goff
Registered User
Join date: 19 Mar 2006
Posts: 31
|
04-28-2006 10:22
From: Burnman Bedlam It is actually possible to place prims underground... however... I don't exactly know why you would want to. If you place an object comprised of multiple prims, and the center of the object is far enough above the center of a child prim, you can move the child prim into the ground. If you wish only that prim to remain there... simply unlink the object's prims, and delete the unwanted parts. At that point, you have placed a prim underground. You may need to recompile any scripts in the prim, which can be done by opening the build window, selecting "edit" and left clicking the ground over the prim and dragging the mouse to get the select box to detect the prim underground. Once it is selected, you can then go to Tools --> Recompile. I discovered this when a linkset I placed unlinked itself for some reason and had to actually *dig* up the remaining prims.  Thanks for that but this script needs to work on individual prims and I would like to avoid burying prims anyway. It does sound like a can of worms now that I think about it. I'm not trying to put them under ground but if they're already mostly submerged and my script which makes minute adjustments to prims tries to do anything, BOOM it's at ground level. That's usually not such a small adjustment.
|
|
Burnman Bedlam
Business Person
Join date: 28 Jan 2006
Posts: 1,080
|
04-28-2006 10:34
From: bafilius Goff Thanks for that but this script needs to work on individual prims and I would like to avoid burying prims anyway. It does sound like a can of worms now that I think about it. I'm not trying to put them under ground but if they're already mostly submerged and my script which makes minute adjustments to prims tries to do anything, BOOM it's at ground level. That's usually not such a small adjustment. Well you could unlink multi-pim items and delete the additional prims... but I haven't actually intentionally left anything underground, so I have no idea what would happen if a script adjusts the prim's location, shape, etc. You realize I am going to spend a couple of hours playing around with buried prims now. Damned curiosity!! 
_____________________
Burnman Bedlam http://theburnman.com Not happy about Linden Labs purchase of XStreet (formerly SLX) and OnRez. Will this mean LL will ban resident run online shoping outlets in favor of their own?
|
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
04-28-2006 10:49
From: Burnman Bedlam You realize I am going to spend a couple of hours playing around with buried prims now. Damned curiosity!!  ctrl+alt+shift+5 may become your best friend LOL
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
04-28-2006 21:21
You could also raise your land around your prims. That way you can find them again by lowering your land when you want to find them.
|