Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem with link/unlink after script rez an object

Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
11-03-2004 03:08
Hello,

I'm trying to make a book, with realistic animation for the page and cover flipping (not the translate then rotate uglyness). So I made a 3 prim object: 1 transparent cylinder as root, a cover and a backcover.
When the book opens, I unlink the backcover, rotate the cylinder to make the cover open smoothly, and then I relink the backcover. Same in reverse to close the book.

It worked well so I proceeded to the next step: rezing a page inside the book after it opened. But then it breaks! It opens, rez a cube (as a test) but when I make it close, the backcover rotates with the rest, as if it is no longer unlinked before the rotation. And I end up with an open book turned face down on the ground.
If I comment the line rez the cube, it works.

With my newbie skills, I really don't understand what happens. Anyone has an idea?

You can get the broken and unbroken version of my book in Drawbridge 27,223 . copyable, modifiable, transferable (take idea and code if you want, I didn't see any books so far in SL ; it'd be cool to see some)
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
11-05-2004 02:42
I tried to put an llSleep between the link and rez without success. But then I tried something else and it works:
I start a timer after the relinking of the backcover and then I rez the page in the timer event that get fired shortly after.
It works. I still wonder if what I did before should have or not worked though.
_____________________
Vincit omnia Chaos
From: Flugelhorn McHenry
Anyway, ignore me, just listen to the cow
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
11-05-2004 02:59
please bug this as the new linking is just freshly released and likely is buggy =)
_____________________
Hiro Pendragon
------------------
http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio

Visit my SL blog: http://secondtense.blogspot.com
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
11-05-2004 08:43
There were some changes to scripted linking and unlinking in the 1.5.6 update. Juding by the times of your posts, the difference could have been the new version fixing something for you. You might want to test it all again.
_____________________
~ Tiger Crossing
~ (Nonsanity)
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
11-07-2004 09:17
From: Tiger Crossing
... been the new version fixing something for you. You might want to test it all again.


It didn't fix it. I filled a bug report for it. thanks all.
_____________________
Vincit omnia Chaos
From: Flugelhorn McHenry
Anyway, ignore me, just listen to the cow