Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multi-prim moving parts

Bartiloux Desmoulins
Think Kink? Think Bart!
Join date: 27 Sep 2005
Posts: 121
11-11-2006 14:14
I am a furniture builder and I like to include a bit of animation / automation in the things I build. I always get stumped, however, when I have a whole "section" of a build that I want to move independently of the rest.

Aside from having two separate groups of linked prims, is there a way with, perhaps, listen commands or linked messages to have one big linked build that has a section that moves? For instance, if I were to build a recliner I'd want the arms and the base to stay stationary while the back, seat and footrest move back and forth.

I know it's easier to describe with concrete scripting examples, but any help with the theory involved would be greatly appreciated!

Thank you in advance!
Bartiloux Desmoulins
Raeyan Aldrich
Registered User
Join date: 14 Oct 2006
Posts: 44
11-11-2006 18:48
it is possible to do, feel free to IM me in SL and i'll do my best to help
Bartiloux Desmoulins
Think Kink? Think Bart!
Join date: 27 Sep 2005
Posts: 121
11-11-2006 19:41
Thank you! I sure will. -Bart
_____________________
Twistedly yours,

[left]Bartiloux Desmoulins[/left]



Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
11-11-2006 22:53
Once upon a time i wrote a drawer script. Oh was it a hack. I should probably dig it out of my inventory and rewrite it.

What it did was unlink from the base, move, then relink. That way it could handle the multiple parts. In the end you would want to adjust for prim drift.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Jigsaw Partridge
A man of parts
Join date: 3 Apr 2005
Posts: 69
11-12-2006 04:36
We have a LazyBoy type recliner at http://slurl.com/secondlife/ranunculus/246/140/31/, if you fancy looking at an example.

You can click on the various parts of it, and they move independently in the usual recliner-type way. The chair also adjusts your avatar's animation as appropriate for the degree of reclining :)

The way this one works is with scripts in each prim broadcasting linked messages, there is a controller script which coordinates and synchronises the movements of the various parts. You can also link the chair (or several chairs) into a house, each chair controller knows to manage only its own set of chair prims.

My only comment would be that this sort of scripting is not for the faint-hearted! SL seems to go out of its way to make it as difficult as possible to manage sub-assemblies of prims in a single linked object.
Bartiloux Desmoulins
Think Kink? Think Bart!
Join date: 27 Sep 2005
Posts: 121
11-12-2006 19:06
Wow! I will scope out the recliner example ASAP. Thank you for sharing your design with me and with all of us who value the information contained in these forums!


Bartiloux