VIV3's Collectible NFTs ownership script

Hello everyone,
I’m currently using the VIV3’s Collectible contract : https://flowscan.org/contract/A.37b92d1580b5c0b5.Collectible . I can now create Sets, Items and mint NFTs, but how can I see, with a script, which user owns which NFTs ? If anyone know or have an idea, please let me know,
Have a good day,
Arthur.

You can use a script like we do in the NFT tutorial to get the ids of the NFTs that a user owns. You’ll need to use VIV3’s specific imports and types in the script instead of the stuff in the tutorial script.

Due to the design of Cadence and how ownership works, it is not possible to query which account owns which NFT by just the NFT ID.