VIV3's Collectible NFTs ownership script

Hello everyone,
I’m currently using the VIV3’s Collectible contract : . 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,

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.