Jump to content

Save Object back to Object Contents


Jase Devin
 Share

You are about to reply to a thread that has been inactive for 409 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi..I know this is possible in Firestorm. Was wondering if possible in lsl scripting?

Have a object rezzed from the contents of another object, want to be able to edit it, but once edited save that object back to the contents of the object that rezzed it. I will be editing it using a hud, but want do a save and at that time put this saved object now back in the contents.

Thanks for any help.

Link to comment
Share on other sites

sort of (at least for object properties)

HUD Contents
  OBJECT
  object_properties_script

HUD rezzes OBJECT
HUD gives OBJECT the object_properties_script
OBJECT OnReceive applies object_properties_script to itself

user edits OBJECT via HUD
user saves OBJECT via HUD

OBJECT OnSave
  object_properties_script saves OBJECT properties to itself
  OBJECT gives object_properties_script to HUD
  OBJECT deletes itself

HUD OnReceive deletes old version/copy of object_properties_script

HUD waits for new rez command
 

 

 

Edited by elleevelyn
()
  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 409 days.

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
 Share

×
×
  • Create New...