DavidThomas Scorbal Posted December 10, 2015 Share Posted December 10, 2015 Checking if this is still The Way Things Are (tm) ...If I drag-copy a scripted object, the original object (the one still sitting in the same position) has its script memory reset, correct? And the new copy that sits where I end the drag, that one now has the script memory of the original object?Is there no way for script memory to survive a drag-copy? (other than the obvious of "don't do that") Thanks Link to comment Share on other sites More sharing options...
Pamela Galli Posted December 10, 2015 Share Posted December 10, 2015 When you make a copy, the script in the copy is reset. Counter intuitively, the original is the one you drag. You can make it so the settings stored in the script are instead stores in a notecard, and the script accesses that on reset. DavidThomas Scorbal wrote: Checking if this is still The Way Things Are ... If I drag-copy a scripted object, the original object (the one still sitting in the same position) has its script memory reset, correct? And the new copy that sits where I end the drag, that one now has the script memory of the original object? Is there no way for script memory to survive a drag-copy? (other than the obvious of "don't do that") Thanks Link to comment Share on other sites More sharing options...
DavidThomas Scorbal Posted December 10, 2015 Author Share Posted December 10, 2015 Can't use a notecard ... the script contains things dynamically generated by using the prim. Strange that the original is considered the one that you move ... but I guess that makes some sense in the light of how the memory reset ... (err, the memory isn't copied) ... works. Thanks Link to comment Share on other sites More sharing options...
Christhiana Posted December 10, 2015 Share Posted December 10, 2015 If you only have to store a little bit of info you can always use the description field of the object. Link to comment Share on other sites More sharing options...
DavidThomas Scorbal Posted December 10, 2015 Author Share Posted December 10, 2015 That's true. It's a bit of a hack, but it might be good enough for this usage case. I'll have to look into maybe loading the data from the description line at script startup, if it's there. Thanks Link to comment Share on other sites More sharing options...
steph Arnott Posted December 11, 2015 Share Posted December 11, 2015 The new script has its own entity. It not a copy. any soft code is atributed only to the memory block that UUID Link to comment Share on other sites More sharing options...
steph Arnott Posted December 11, 2015 Share Posted December 11, 2015 "It's a bit of a hack" it is not a hack and never has been, also it is extreemly unreliable. Link to comment Share on other sites More sharing options...
Yingzi Xue Posted January 20, 2016 Share Posted January 20, 2016 Another reason the drag copy works the way it does... Since the original is the one that moves when you drag copy, its history stays intact (recent positions, scales and rotations) and can be cycled through via CTRL-Z (undo) and CTRL-Y (redo). This comes in handy, for instance, when you need to move the prim/object back to its previous position after making a drag copy. Each prim/object keeps track of its own history, which can be scrolled through using undo and redo keyboard shortcuts. Link to comment Share on other sites More sharing options...
ChinRey Posted January 20, 2016 Share Posted January 20, 2016 DavidThomas Scorbal wrote: Strange that the original is considered the one that you move ... There is a relatively easy way to work around that: Copy-drag, move the copy out of the way, select original and use ctrl-Z to snap it back into place. 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