scene queries will start from the top-most asset, eg. your item, because items are also assets
scene queries will not descend into other assets, eg. the query won’t descend from your item into your original asset
Adding hierarchical: true tells the query that it should descend into all assets. I don’t think you’ll need the from parameter I showed, the from parameter indicates where the query should start, in this case, api.instanceId would be the instance ID of your the asset/node your custom script is running from.