# How to query GPU cache?

**URL:** https://forum.highend3d.com/t/how-to-query-gpu-cache/161373
**Category:** Maya
**Tags:** python, general-usage
**Created:** [September 20, 2019, 8:27am UTC](https://forum.highend3d.com/t/how-to-query-gpu-cache/161373 "2019-09-20T08:27:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lala\_ghost](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/l/a698b9/32.png) [@lala\_ghost](https://forum.highend3d.com/u/lala_ghost)
#### Post date: [September 20, 2019, 8:27am UTC](https://forum.highend3d.com/t/how-to-query-gpu-cache/161373/1 "2019-09-20T08:27:40Z")

</div>

I would like to query the GPU cache under ‘Show\>GPU cache’, right above the viewport  
I use this script:

import maya.cmds as cmds  
print cmds.modelEditor(‘modelPanel4’, query = True, pluginObjects = True)

but it return only ‘None’

---

<div class="post-metadata">

### Author: ![m3trik](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@m3trik](https://forum.highend3d.com/u/m3trik)
#### Post date: [September 24, 2019, 3:09pm UTC](https://forum.highend3d.com/t/how-to-query-gpu-cache/161373/2 "2019-09-24T15:09:06Z")

</div>

I see two issues:

1. pluginObjects is not queryable in the standard way. (you would use the ‘queryPluginObjects’ flag instead)

2)the pluginObjects flag takes two arguments: [string, bool]

so the end result would be something like:  
pm.modelEditor(‘modelPanel5’, edit=True, pluginObjects=[‘’, True])

the docs suggest the return value should be the string name of the editor.

---

<div class="post-metadata">

### Author: ![system](https://forum.highend3d.com/user_avatar/forum.highend3d.com/system/32/59311_2.png) [@system](https://forum.highend3d.com/u/system)
#### Post date: [December 20, 2019, 4:33am UTC](https://forum.highend3d.com/t/how-to-query-gpu-cache/161373/3 "2019-12-20T04:33:57Z")

</div>

This topic was automatically closed after 90 days. New replies are no longer allowed.
