Difference between revisions of "Talk:LlAttachToAvatar"
(→Which constants are in italics?: new section) |
|||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Note that llAttachToAvatar will fail if the avatar is not the owner of the object being attached, even if permission to attach has been granted. | Note that llAttachToAvatar will fail if the avatar is not the owner of the object being attached, even if permission to attach has been granted. --[[User:Dilbert_Cleanslate|Dilbert Cleanslate]] 16:00, 23 February 2007 (signature added) | ||
== llDie or llDeleteFromInventory or llAttachFromInventory? == | |||
There is no functionality that I can find for cleaning up a user's inventory after rezzing an object from a Prim's inventory and attaching it. Repeated use of the object and attachment results in a clutter in the user's inventory of the rezzed/attached object. There seems to be no way for a script to rez the "attachment" from the users inventory or even check to see if it exists, which might allow for the rezzed object to be killed (llDie()) and the one existing in User inventory to be recycled instead. | |||
If there are any workarounds for this it would be greatly appreciated as to how to approach it. --[[User:Melany_Lunasea|Melany Lunasea]] 09:49, 11 August 2008 (signature added) | |||
:You could make it no-copy, if it's ok for it to be transferable. --[[User:Sayrah Parx|Sayrah Parx]] 14:03, 15 June 2010 (UTC) | |||
::there are no ''solid'' workarounds for excess attached items from prim inventory gives yet... in some case you can include hidden prims in the originating item and instead of rezzing the item from inventory create it in place with the extra prims. <br/>-- '''[[User:Void_Singer|Void]]''' <sup><small>([[User_talk:Void_Singer|talk]]|[[Special:Contributions/Void_Singer|contribs]])</small></sup> 05:01, 17 June 2010 (UTC) | |||
::: Before llSetLinkPrimitiveParams (and Mono) {{User|Jesrad Seraph}} and I worked on a script project that achieved just this. For a while we were working on a 3D web specification. You can find the last published version here: [http://lslwiki.net/lslwiki/wakka.php?wakka=exchangeTLTP]. Due to memory constraints the code was highly optimized and features had to be chosen very carefully. Our uses for the scripts diverged and so development forked, as there just wasn't enough memory in LSO for the script. It's one of only a handful of situations where Recursion made sense. The bytecode cost of using a loop or unwinding was greater than using a recursive global function, furtunately there was enough memory at runtime to temporarily support the stack depth required. It was during this time that the <code>list = (list = []) + list + other;</code> hack was discovered (as it was the only way that I could keep the script from stack-heap'ing). A big problem with that implementation of TLML was that it was so expensive to move an object from one simulator to another; an object may very well contain 100 slave scripts. If I were redoing the project today I would just use [[llSetLinkPrimitiveParams]], [[llLinkParticleSystem]], [[llSetLinkTextureAnim]] and only support a limited number of sit targets with a few smart slaves. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 20:29, 19 June 2010 (UTC) | |||
== Which constants are in ''italics''? == | |||
At the date of writing this, no constants are in ''italics'' — does that mean that all attachment points are valid for non-[[Project Bento Skeleton Guide|Bento]] avatars as well? And, if so, where exactly will the attached objects be attached, if such points are missing on the default avatar? Do you get some sort of error, or SL will attempt to place the object as close as possible to the intended position? | |||
I guess I could do some tests on my non-Bento avatar and answer myself, but perhaps someone has already done that and could spare the rest of us the trouble :) | |||
— [[User:Gwyneth Llewelyn|Gwyneth Llewelyn]] ([[User talk:Gwyneth Llewelyn|talk]]) 13:23, 13 April 2022 (PDT) |
Latest revision as of 12:23, 13 April 2022
Note that llAttachToAvatar will fail if the avatar is not the owner of the object being attached, even if permission to attach has been granted. --Dilbert Cleanslate 16:00, 23 February 2007 (signature added)
llDie or llDeleteFromInventory or llAttachFromInventory?
There is no functionality that I can find for cleaning up a user's inventory after rezzing an object from a Prim's inventory and attaching it. Repeated use of the object and attachment results in a clutter in the user's inventory of the rezzed/attached object. There seems to be no way for a script to rez the "attachment" from the users inventory or even check to see if it exists, which might allow for the rezzed object to be killed (llDie()) and the one existing in User inventory to be recycled instead.
If there are any workarounds for this it would be greatly appreciated as to how to approach it. --Melany Lunasea 09:49, 11 August 2008 (signature added)
- You could make it no-copy, if it's ok for it to be transferable. --Sayrah Parx 14:03, 15 June 2010 (UTC)
- Before llSetLinkPrimitiveParams (and Mono) Jesrad Seraph and I worked on a script project that achieved just this. For a while we were working on a 3D web specification. You can find the last published version here: [1]. Due to memory constraints the code was highly optimized and features had to be chosen very carefully. Our uses for the scripts diverged and so development forked, as there just wasn't enough memory in LSO for the script. It's one of only a handful of situations where Recursion made sense. The bytecode cost of using a loop or unwinding was greater than using a recursive global function, furtunately there was enough memory at runtime to temporarily support the stack depth required. It was during this time that the
list = (list = []) + list + other;
hack was discovered (as it was the only way that I could keep the script from stack-heap'ing). A big problem with that implementation of TLML was that it was so expensive to move an object from one simulator to another; an object may very well contain 100 slave scripts. If I were redoing the project today I would just use llSetLinkPrimitiveParams, llLinkParticleSystem, llSetLinkTextureAnim and only support a limited number of sit targets with a few smart slaves. -- Strife (talk|contribs) 20:29, 19 June 2010 (UTC)
- Before llSetLinkPrimitiveParams (and Mono) Jesrad Seraph and I worked on a script project that achieved just this. For a while we were working on a 3D web specification. You can find the last published version here: [1]. Due to memory constraints the code was highly optimized and features had to be chosen very carefully. Our uses for the scripts diverged and so development forked, as there just wasn't enough memory in LSO for the script. It's one of only a handful of situations where Recursion made sense. The bytecode cost of using a loop or unwinding was greater than using a recursive global function, furtunately there was enough memory at runtime to temporarily support the stack depth required. It was during this time that the
Which constants are in italics?
At the date of writing this, no constants are in italics — does that mean that all attachment points are valid for non-Bento avatars as well? And, if so, where exactly will the attached objects be attached, if such points are missing on the default avatar? Do you get some sort of error, or SL will attempt to place the object as close as possible to the intended position?
I guess I could do some tests on my non-Bento avatar and answer myself, but perhaps someone has already done that and could spare the rest of us the trouble :)
— Gwyneth Llewelyn (talk) 13:23, 13 April 2022 (PDT)