The following hides containers for all players except for the current player and the Admin.

An example use case would be hiding players’ hands of cards, so that only the current player and Admin can see each.

  1. Ensure your seats are named Seat 1, Seat 2, etc., and you have a seat named Admin.
  2. Place all containers for which you want to restrict viewing within a single container (the uber-container).
  3. Select the uber-container and press o.
  4. Use the checkbox to select all the objects and click the pencil button.
  5. Copy and paste the following code (replacing the existing code) and click Save.
export default function(object, index) {
  return {
    "seats": [
      "Admin",
      "Seat "+index
    ],
    "viewPolicy": "ALLOW_SEATS",    
  };
}