I'm currently using hec-fashion's semi automatic script (she only provides instructions on how to record it) and it works in all cases (rasters, vectors, masks and groups), BUT it does require manually ungrouping and deleting layers from both images after the pasting.
It is better than nothing, but a script that automates the whole thing would be so much better.
EDIT: Following up the discussion in this topic, I recorded 3 scripts which I'm sharing in case they prove useful for other people too. I'm attaching them packed in a zip file. To save me some typing, I am also copying here the included Readme file. Please note that I have not tested them extensively, so if you find any issues, please use this topic for reports, ideas, etc.
Download: Mini Video (basic usage): download (imgur degraded the video quality drastically, so you may want to use this direct link to get the crisp original clip).
README.TXT
This is a small set of scripts, to workaround the lack of a proper 'Paste In Place' command in PaintShop Pro. They can handle all types of layers and groups (masks included) and plain raster selections. These scripts have been recorded, not coded.
Limitations:
* source and destination images MUST have the same dimensions
* the scripts do NOT work with multiple layers (Workaround: group them together and apply the scripts to the group)
* mask-groups should NOT include un-promoted background layers (promote them before using the scripts)
* pasting ALWAYS creates a new layer to the destination image (merge it down if you need to)
More info and download links (Corel Users forums):
https://forum.corel.com/viewtopic.php?f=104&t=67887
Mini Video (the scripts have been already bound as context-menu commands)
Inspired by:
1. hec-fashion's video
2. LeviFiction's suggestion for a 2nd script
QUICK HELP
Unpack the included scripts in any of the folders listed in the following dialog:
File -> Preferences -> File Locations [Scripts - Restricted]
You can then use the scripts directly from PSP's Scripts toolbar ("View -> Toolbars -> Script"), but the recommended usage is binding them to icons via the "View -> Customize [Scripts]" dialog, and then place them to existed or custom toolbars/menus. If you are not familiar with that, here's a helpful video.
Included Scripts:
Copy Layer For Paste In Place (source image)
Use this to copy the currently selected layer or layers-group to the clipboard. Mask-groups work too.
Copy Selection For Paste In Place (source image)
Use this to copy the current raster selection (marching ants) to the clipboard. Selections created from vectors via "Selections -> From Vector Object" work too.
Paste As New Layer In Place (destination image)
Use this to paste the clipboard data to the destination image, placing them at the same relative location compared to the source image. This works ONLY when the data have been copied to the clipboard via one of the Copy scripts described above.
For more info/download links/questions/etc, see the Corel Users forum corresponding topic:
https://forum.corel.com/viewtopic.php?f=104&t=67887