-
Notifications
You must be signed in to change notification settings - Fork 3
Adding Multiple Singles
This works for all singles sitters. All seats can have a line in a singles notecard but only the menu user will change.
For example we can use the following for our SET:DEFAULTCARD notecard and as these lines are written, every sitter will run the meditation animation whenever any sitter clicks the menu button. Be sure that the SEAT_INIT|4 line is in the .init notecard to support four sitters. The end result is that all sitters in the following seats will change animations:
XANIM|1|meditation|<0.70354, 0.68508, 0.80000>|<0.00001, 0.00000, -135.00040>|
XANIM|2|meditation|<-0.75256, 0.73643, 0.80000>|<0.00001, 0.00000, -44.99962>|
XANIM|3|meditation|<-0.73697, -0.71104, 0.80000>|<0.00001, 0.00000, 44.99962>|
XANIM|4|meditation|<0.70354, -0.71104, 0.80000>|<0.00001, 0.00000, 135.00040>|
We can re-write the card contents above to restrict which line will run to the menu user's seat as follows:
XANIM{1}|1|meditation|<0.70354, 0.68508, 0.80000>|<0.00001, 0.00000, -135.00040>|
XANIM{2}|2|meditation|<-0.75256, 0.73643, 0.80000>|<0.00001, 0.00000, -44.99962>|
XANIM{3}|3|meditation|<-0.73697, -0.71104, 0.80000>|<0.00001, 0.00000, 44.99962>|
XANIM{4}|4|meditation|<0.70354, -0.71104, 0.80000>|<0.00001, 0.00000, 135.00040>|
Since there are no restrictions on the notecard name, nPose will present this menu button to all sitters but the restrictions on each of the line will prevent all seats from changing poses and only the line which the menu user is seated in will run. Thus changing only that sitter's animation and ignoring the rest of the sitters.
We can then add a second notecard by the name of SET:Stories and add the following lines:
XANIM{1}|1|npose-storyteller|<0.70354, 0.68508, 0.80000>|<0.00001, 0.00000, -135.00040>|
XANIM{2}|2|npose-storyteller|<-0.75256, 0.73643, 0.80000>|<0.00001, 0.00000, -44.99962>|
XANIM{3}|3|npose-storyteller|<-0.73697, -0.71104, 0.80000>|<0.00001, 0.00000, 44.99962>|
XANIM{4}|4|npose-storyteller|<0.70354, -0.71104, 0.80000>|<0.00001, 0.00000, 135.00040>|
We can have multiple menu choices by adding more notecards. Every sitter can then pick the pose they want to use without bothering any other sitters.
-
Getting started
-
Reference
-
Changelogs
-
Internals