Cyrus Odets
Registered User
Join date: 5 Oct 2005
Posts: 51
|
01-09-2006 11:00
I was wondering if someone could point me towards some information on having objects within objects.
Specifically, when you have Object A....open up its 'contents' and have an Object B inside it. What I'd like to do is reduce the clutter of my item so that EVERYTHING (scripts, animations, notecards, etc.) isn't in the contents of my main item...I'd like to be able to 'package' certain scripts or items into Object B and then place Object B into Object A.
What I need to learn about is whether Object A & Object B can communicate using Link Messages, and if they may 'share' their inventory contents.
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
01-09-2006 12:13
They cannot communicate while object B is in object A's inventory. If you pull it out and rez it on the ground, now they're two separate objects, and they can communicate.
if you don't want to look at the inventory, you could put it into a non-root prim's inventory. Depending on what the scripts do, this may break some of the scripts, because some function calls work differently when in a root prim vs a non-root prim.
|
Cyrus Odets
Registered User
Join date: 5 Oct 2005
Posts: 51
|
01-09-2006 12:43
Thanks!
I think I follow ya....in other words...instead of putting Object B INSIDE of Object A...rez object B and perhaps position it physically in Object A (Not in A's inventory). Then, make sure Object B isn't the root prim and reconfigure my link messages to talk to the non-root prim Object B.
Can Object B 'access' the stuff in the inventory of Object A? For instance, if Object B is calling animations...can those animations reside in the inventory of Object A? Is stuff 'shared'?
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
01-09-2006 12:51
Not really. I meant if object A is a multi-prim object, then instead of keeping stuff in its root prim, you could keep it in a non-root prim. From: someone instead of putting Object B INSIDE of Object A...rez object B and perhaps position it physically in Object A (Not in A's inventory). That might work, but if someone right-clicked and said 'take', they'd only get object A. From: someone Can Object B 'access' the stuff in the inventory of Object A? For instance, if Object B is calling animations...can those animations reside in the inventory of Object A? Is stuff 'shared'? No.
|