|
Okiphia Anatine
Okiphia Rayna
Join date: 22 Nov 2007
Posts: 454
|
01-11-2008 21:42
Do notecards have UUIDs? Wondering if it would be possible to use one object with a notecard for settings, and have other objects throughout SL read from it, if that makes sense.
Essentially, have a script reading from a notecard in a separate object, through use of UUID or something similar. They can take textures and such from UUID, but notecard? I'm not sure..
Anyone know?
I don't have a use for it in mind, just a thought that occurred to me.
_____________________
In-world, I am Okiphia Rayna. This account is an alt, and is the only account I currently have with payment info on-file due to some account cracking that took place. This is a security measure at present, and I may return to the forums as Okiphia Rayna at a later date.
If you need to reach me, IM Okiphia Rayna, not Okiphia Anatine
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-11-2008 22:33
Yes. You can read a notecard using its UUID. To get the key of a notecard, you must have full permissions on the notecard. Put it in object inventory and use llGetInventoryKey() to get it. Then you can use the notecard's UUID to read the notecard whether or not it is (still) in prim inventory. Also, as long as you have a notecard's UUID stored in script memory or as a lteral in your source code (e.g. "12341234-1234-1234-1234-123412341234"  , asset server garbage collection is SUPPOSED to keep it around even if it isn't in object or resident inventory. There's a big gotcha though. If you edit and save a notecard, it actually becomes a NEW notecard with a DIFFERENT UUID. So if you need to change the data being used by your scripts, you'll have to update the UUIDs they all read from after you're done saving the new notecard.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-12-2008 03:19
translation: not a good way to update products or disseminate new information.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
01-12-2008 05:00
|