Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function pastePlaceableObject

    • A hook event that fires when any PlaceableObject is pasted onto the Scene. Substitute the "PlaceableObject" in the hook event to target a specific PlaceableObject type, for example "pasteToken".

      Parameters

      • objects: PlaceableObject[]

        The objects that were copied or cut

      • data: object[]

        The create data if copied, or the update data if cut

      • options: { cut: boolean }

        Additional options

        • cut: boolean

          Were the objects cut instead of copied?

      Returns void