Monica Balut Posted July 6, 2011 Share Posted July 6, 2011 By using llSetPrimitiveParams([PRIM_NAME, "new name"]) I can change the name of worn HUD via script. If I look at the Name field in the Content window, can clearly see the name has been changed. The only problem is the name change does not persist when the HUD is detached. It reverts to the old name. I haven't tried llSetObjectName but I suspect it will behave the same way. Is there any way to get a name change to persist if done on a worn object? Changing the name in the inventory does not work on no modify objects. I suspect that the only way to do it is to actually rez the object on the ground. :(((( Link to comment Share on other sites More sharing options...
Cerise Sorbet Posted July 6, 2011 Share Posted July 6, 2011 Is there any way to get a name change to persist if done on a worn object? No, that is a limitation for attachments. The name can be changed in the inventory window, but changes by a script or in the edit window will not stick. Link to comment Share on other sites More sharing options...
Void Singer Posted July 6, 2011 Share Posted July 6, 2011 as a workaround for attachments you can save the name you want it to be when worn to a variable then reapply it in the attach event. then even if it's renamed in inventory it will always use the name you want when worn Link to comment Share on other sites More sharing options...
Monica Balut Posted July 6, 2011 Author Share Posted July 6, 2011 Thanks Void. Unfortunately, what I am after here is for the new name to appear in the personal inventory so the user can distiguish it from other copies. It seems that there are only two solutions. One is to have the user make a copy of the original boxed version before it is rezzed and rename that one in the inventory. Otherwise s/he has to rez it to rename it. I was hoping to make this easier for the user. Link to comment Share on other sites More sharing options...
Void Singer Posted July 6, 2011 Share Posted July 6, 2011 unfortunately, it's a combination of LL not wanting items in inventory to unexpectedly change names, and not wanting to provide direct access to modifying items on the asset server. if we had a scripted drop functionality, there is a way to auto return items to the users lost and found via posJump to nowhere. a less optimal solution to your specific problem is to include a copy of the item in it's contents, which can be rezzed with a start parameter. when it's rezzed with that parameter it sends a call to the original asking for a new name. the original gives the copy a copy for it's contents, and sends a message with the new name to use. the rezzed copy can then change names and ask for permission to attach. the downs side is that it requires ability to rez an object, a permission dialog, and ends up in the objects folder, plus the extra coding and duplication. Link to comment Share on other sites More sharing options...
Rufus Darkfold Posted July 6, 2011 Share Posted July 6, 2011 Closest you can do from a script is to request attach permissions, then ask them to drop the HUD. Have it rename itself while dropped, then automaticlaly re-attach. You have to be somewhere you have rez permissions. That approach is also handy if one desires to make linkset changes to a HUD. Link to comment Share on other sites More sharing options...
Void Singer Posted July 7, 2011 Share Posted July 7, 2011 a bit simpler yes, but it still requires rez and permissions, and loses out on the automation. Link to comment Share on other sites More sharing options...
Rufus Darkfold Posted July 15, 2011 Share Posted July 15, 2011 I find the drop/reattach rather handy when making changes to a HUD. Sometimes when I make changes, and then have a failed TP or otherwise get ungracefully logged-out, my changes are lost. Anything prior to the most recent attach seems to be preserved though. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now